Results for: "to_proc"

Returns the node id for the given backtrace location.

begin
  raise
rescue =>  e
  loc = e.backtrace_locations.first
  RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location(loc)
end # => 0
No documentation available

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

{ **foo } ^^^^^

foo(&bar) ^^^^

def foo(&bar); end ^^^^

A block’s parameters.

foo in bar ^^^^^^^^^^

foo => ^(bar) ^^^^^^

BEGIN {}

/foo/ ^^^^^

When the content of a string node is split across multiple lines, the parser gem creates individual string nodes for each line the content is part of.

def foo(**); bar(**); end
                 ^^

{ **foo }
  ^^^^^
foo(&bar)
    ^^^^
def foo(&bar); end
        ^^^^

A block’s parameters.

foo in bar
^^^^^^^^^^
foo => ^(bar)
       ^^^^^^

BEGIN {}

/foo/
^^^^^
No documentation available
No documentation available

/foo #{bar}/ ^^^^^^^^^^^^

foo ^^^

foo = 1 ^^^^^^^

foo, = bar ^^^

Search took: 4ms  ·  Total Results: 1548