Results for: "Logger"

Copy a RequiredParameterNode node

Copy a RescueModifierNode node

Copy a RestParameterNode node

in [foo, bar, baz]

in InstanceVariableReadNode[name: Symbol] in { name: Symbol }

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Get a single optional argument from the command line. If more than one argument is given, return only the first. Return nil if none are given.

Adds a section with title and content to the parser help view. Used for adding command arguments and default arguments.

No documentation available

Returns a proxy URI for the given scheme if one is set in the environment variables.

Enumerates the outdated local gems yielding the local specification and the latest remote version.

This method may take some time to return as it must check each local gem against the server’s index.

No documentation available

Scanning is intentionally conservative because we have no way of rolling back an agressive block (at this time)

If a block was stopped for some trivial reason, (like an empty line) but the next line would have caused it to be balanced then we can check that condition and grab just one more line either up or down.

For example, below if we’re scanning up, line 2 might cause the scanning to stop. This is because empty lines might denote logical breaks where the user intended to chunk code which is a good place to stop and check validity. Unfortunately it also means we might have a “dangling” keyword or end.

1 def bark
2
3 end

If lines 2 and 3 are in the block, then when this method is run it would see it is unbalanced, but that acquiring line 1 would make it balanced, so that’s what it does.

Shows surrounding kw/end pairs

The purpose of showing these extra pairs is due to cases of ambiguity when only one visible line is matched.

For example:

1  class Dog
2    def bark
4    def eat
5    end
6  end

In this case either line 2 could be missing an ‘end` or line 4 was an extra line added by mistake (it happens).

When we detect the above problem it shows the issue as only being on line 2

2    def bark

Showing “neighbor” keyword pairs gives extra context:

2    def bark
4    def eat
5    end

Returns true if the document is valid with all lines removed. By default it checks all blocks in present in the frontier array, but can be used for arbitrary arrays of codeblocks as well

No documentation available

Creates a self-signed certificate with an issuer and subject of subject and the given extensions for the key.

Add local/remote options to the command line parser.

Globs for files matching pattern inside of directory, returning absolute paths to the matching files.

Search took: 5ms  ·  Total Results: 2737