Class: LibRubyParser::Nodes::Float

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

Overview

Represents a float literal (i.e. 42.5)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

-42.5
~~~~~

Returns:



1504
1505
1506
# File 'lib/lib-ruby-parser/nodes.rb', line 1504

def expression_l
  @expression_l
end

#operator_lLoc? (readonly)

Location of unary - (but not +)

-42.5
~

Returns:



1495
1496
1497
# File 'lib/lib-ruby-parser/nodes.rb', line 1495

def operator_l
  @operator_l
end

#valueString (readonly)

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

Returns:

  • (String)


1486
1487
1488
# File 'lib/lib-ruby-parser/nodes.rb', line 1486

def value
  @value
end