Class: LibRubyParser::Nodes::Ivar

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

Overview

Represents access to instance variable (i.e. @foo)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

~~~~

Returns:



2204
2205
2206
# File 'lib/lib-ruby-parser/nodes.rb', line 2204

def expression_l
  @expression_l
end

#nameString (readonly)

Name of the instance variable, String("@foo") in @foo

Returns:

  • (String)


2195
2196
2197
# File 'lib/lib-ruby-parser/nodes.rb', line 2195

def name
  @name
end