Class: LibRubyParser::Nodes::Int

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

Overview

Represents an integer literal (i.e. 42)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

-42
~~~

Returns:



2157
2158
2159
# File 'lib/lib-ruby-parser/nodes.rb', line 2157

def expression_l
  @expression_l
end

#operator_lLoc? (readonly)

Location of unary - (but not +)

-42
~

Returns:



2148
2149
2150
# File 'lib/lib-ruby-parser/nodes.rb', line 2148

def operator_l
  @operator_l
end

#valueString (readonly)

String value of the literal, String("42") for 42

Returns:

  • (String)


2139
2140
2141
# File 'lib/lib-ruby-parser/nodes.rb', line 2139

def value
  @value
end