Class: LibRubyParser::Nodes::Int
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Int
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents an integer literal (i.e. 42
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#operator_l ⇒ Loc?
readonly
Location of unary
-
(but not+
). -
#value ⇒ String
readonly
String value of the literal,
String("42")
for42
.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
-42
~~~
2157 2158 2159 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2157 def expression_l @expression_l end |
#operator_l ⇒ Loc? (readonly)
Location of unary -
(but not +
)
-42
~
2148 2149 2150 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2148 def operator_l @operator_l end |
#value ⇒ String (readonly)
String value of the literal, String("42")
for 42
2139 2140 2141 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2139 def value @value end |