Class: LibRubyParser::Nodes::Float
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Float
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a float literal (i.e. 42.5
)
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.5")
for42.5
.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
-42.5
~~~~~
1504 1505 1506 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1504 def expression_l @expression_l end |
#operator_l ⇒ Loc? (readonly)
Location of unary -
(but not +
)
-42.5
~
1495 1496 1497 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1495 def operator_l @operator_l end |
#value ⇒ String (readonly)
String value of the literal, String("42.5")
for 42.5
1486 1487 1488 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1486 def value @value end |