Results for: "OptionParser"

No documentation available

Singular accessor for require_paths

Singular accessor for require_paths

List of dependencies that will automatically be activated at runtime.

Checks if this specification meets the requirement of dependency.

No documentation available

Regenerates plugin wrappers after removal.

Is spec in gem_dir?

No documentation available

Return a progress reporter object chosen from the current verbosity.

Return a download reporter object chosen from the current verbosity

Expands code to the next lowest indentation

For example:

1 def dog
2   print "dog"
3 end

If a block starts on line 2 then it has captured all it’s “neighbors” (code at the same indentation or higher). To continue expanding, this block must capture lines one and three which are at a different indentation level.

This method allows fully expanded blocks to decrease their indentation level (so they can expand to capture more code up and down). It does this conservatively as there’s no undo (currently).

Smushes all heredoc lines into one line

source = <<~'EOM'
  foo = <<~HEREDOC
     lol
     hehehe
  HEREDOC
EOM

lines = CleanDocument.new(source: source).join_heredoc!.lines
expect(lines[0].to_s).to eq(source)
expect(lines[1].to_s).to eq("")
No documentation available

Used to hide lines

The search alorithm will group lines into blocks then if those blocks are determined to represent valid code they will be hidden

Opposite of ‘empty?` (note: different than `visible?`)

No documentation available

Returns an array of all the CodeLines that exist after the currently scanned block

No documentation available

Protected setter for the host component v.

See also URI::Generic.host=.

do nothing

raise InvalidURIError

Protected setter for the scheme component v.

See also URI::Generic.scheme=.

Checks the password v component for RFC2396 compliance and against the URI::Parser Regexp for :USERINFO.

Can not have a registry or opaque component defined, with a user component defined.

Returns the password component after URI decoding.

Search took: 6ms  ·  Total Results: 5424