def initialize: (location: Location
) -> void
def initialize: (names: Array, keyword_loc
: Location
, location: Location
) -> void
def initialize: (keyword_loc
: Location
, predicate: Node
, then_keyword_loc
: Location
?, statements: StatementsNode
?, consequent: ElseNode
?, end_keyword_loc
: Location
?, location: Location
) -> void
def initialize: (flags: Integer
, keyword_loc
: Location
, closing_loc
: Location
?, predicate: Node
, statements: StatementsNode
?, location: Location
) -> void
def initialize: (keyword_loc
: Location
, conditions: Array, statements: StatementsNode
?, location: Location
) -> void
def initialize: (flags: Integer
, keyword_loc
: Location
, closing_loc
: Location
?, predicate: Node
, statements: StatementsNode
?, location: Location
) -> void
def initialize: (flags: Integer
, opening_loc
: Location
, content_loc
: Location
, closing_loc
: Location
, unescaped: String
, location: Location
) -> void
def initialize: (keyword_loc
: Location
, lparen_loc
: Location
?, arguments: ArgumentsNode
?, rparen_loc
: Location
?, location: Location
) -> void
Create a new source object with the given source code and newline byte offsets. If no newline byte offsets are given, they will be computed from the source code.
Create a new location object with the given source, start byte offset, and byte length.
Create a new comment object with the given location.
Create a new magic comment object with the given key and value locations.
Create a new error object with the given message and location.
Create a new warning object with the given message and location.
Create a new parse result object with the given values.
Create a new token object with the given type, value, and location.
Create a new pattern with the given query. The query should be a string containing a Ruby pattern matching expression.
Create a new RipperCompat
object with the given source.
Creates a new Resolv::Hosts
, using filename
for its data source.