Class: LibRubyParser::Nodes::Arg

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents a positional required block/method argument.

a in def m(a); end or proc { |a| }

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

def m(argument); end
      ~~~~~~~~

Returns:



125
126
127
# File 'lib/lib-ruby-parser/nodes.rb', line 125

def expression_l
  @expression_l
end

#nameString (readonly)

Name of the argument

Returns:

  • (String)


116
117
118
# File 'lib/lib-ruby-parser/nodes.rb', line 116

def name
  @name
end