class CodeTools::AST::FloatLiteral
Attributes
value[RW]
Public Class Methods
new(line, str)
click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 94 def initialize(line, str) @line = line @value = str.to_f end
Public Instance Methods
bytecode(g)
click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 99 def bytecode(g) pos(g) g.push_float @value end
defined(g)
click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 105 def defined(g) g.push_literal "expression" end
to_sexp()
click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 109 def to_sexp [:lit, @value] end