Results for: "module_function"

See Zlib::GzipReader documentation for a description.

No documentation available

Compose a header for the given node.

Returns the full name of this constant path. For example: “Foo::Bar”

Returns the full name of this constant path. For example: “Foo::Bar”

Returns the full name of this constant. For example: “Foo”

Returns the full name of this constant. For example: “Foo”

Returns the full name of this constant. For example: “Foo”

def multi_line?: () -> bool

def multi_line?: () -> bool

def multi_line?: () -> bool

def multi_line?: () -> bool

No documentation available
No documentation available

Returns the full name (name-version) of this Gem. Platform information is included (name-version-platform) if it is specified and not the default Ruby platform.

Full path of the target library file. If the file is not in this gem, return nil.

Indicated, based on the requested domain, if remote gems should be considered.

No documentation available

Reads the file index and extracts each file into the gem directory.

Ensures that files can’t be installed outside the gem directory.

Returns the full name (name-version) of this Gem. Platform information is included if it is not the default Ruby platform. This mimics the behavior of Gem::Specification#full_name.

Extracts the files in this package into destination_dir

If pattern is specified, only entries matching that glob will be extracted.

No documentation available

Count source code characters

Example:

left_right = LeftRightLexCount.new
left_right.count_lex(LexValue.new(1, :on_lbrace, "{", Ripper::EXPR_BEG))
left_right.count_for_char("{")
# => 1
left_right.count_for_char("}")
# => 0
No documentation available

Returns the source encoding as an encoding object.

Note that the result may not be equal to the source encoding of the encoding converter if the conversion has multiple steps.

ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") # ISO-8859-1 -> UTF-8 -> EUC-JP
begin
  ec.convert("\xa0") # NO-BREAK SPACE, which is available in UTF-8 but not in EUC-JP.
rescue Encoding::UndefinedConversionError
  p $!.source_encoding              #=> #<Encoding:UTF-8>
  p $!.destination_encoding         #=> #<Encoding:EUC-JP>
  p $!.source_encoding_name         #=> "UTF-8"
  p $!.destination_encoding_name    #=> "EUC-JP"
end
Search took: 6ms  ·  Total Results: 5313