Class: LibRubyParser::Nodes::Rational
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Rational
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents rational literal (e.g. 1r
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#operator_l ⇒ Loc?
readonly
Location of the unary
-
(but not+
). -
#value ⇒ String
readonly
String value of the literal,
String("1r")
for1r
.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
-1r
~~~
3410 3411 3412 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3410 def expression_l @expression_l end |
#operator_l ⇒ Loc? (readonly)
Location of the unary -
(but not +
)
-1r
~
3401 3402 3403 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3401 def operator_l @operator_l end |
#value ⇒ String (readonly)
String value of the literal, String("1r")
for 1r
3392 3393 3394 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3392 def value @value end |