Results for: "module_function"

The name of the configuration file.

No documentation available
No documentation available

Helper method for grabbing elements from document

Like ‘take_while` except when it stops iterating, it also returns the line that caused it to stop

No documentation available

Returns the source encoding name as a string.

Returns the source encoding name as a string.

If the stream begins with a BOM (byte order marker), consumes the BOM and sets the external encoding accordingly; returns the result encoding if found, or nil otherwise:

File.write('t.tmp', "\u{FEFF}abc")
io = File.open('t.tmp', 'rb')
io.set_encoding_by_bom # => #<Encoding:UTF-8>
io.close

File.write('t.tmp', 'abc')
io = File.open('t.tmp', 'rb')
io.set_encoding_by_bom # => nil
io.close

Raises an exception if the stream is not binmode or its encoding has already been set.

Sets the encoding according to the BOM (Byte Order Mark) in the string.

Returns self if the BOM is found, otherwise +nil.

No documentation available
MRI specific feature

Return all reachable objects from root.

Quietly ensure the Gem directory dir contains all the proper subdirectories for handling default gems. If we can’t create a directory due to a permission problem, then we will silently continue.

If mode is given, missing directories are created with this mode.

World-writable directories will never be created.

Find an unresolved Gem::Specification of default gem from path

Returns a string decoded from the given URL-encoded string str.

The given string is first encoded as Encoding::ASCII-8BIT (using String#b), then decoded (as below), and finally force-encoded to the given encoding enc.

The returned string:

Related: URI.decode_uri_component (preserves '+').

@foo &&= bar

becomes

@foo && @foo = bar

@foo ||= bar

becomes

@foo || @foo = bar

@foo += bar

becomes

@foo = @foo + bar

Full name of the tar entry

def foo(bar: baz); end ^^^^^^^^

def foo(bar: baz); end
        ^^^^^^^^

@foo ^^^^

@foo = 1 ^^^^^^^^

@foo, = bar ^^^^

Visit the targets of a multi-target node.

foo, bar = baz ^^^^^^^^

Search took: 5ms  ·  Total Results: 3310