Class: Faust2Ruby::AST::FloatLiteral

Inherits:
Node
  • Object
show all
Defined in:
lib/faust2ruby/ast.rb

Overview

Float literal

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

#initialize(value, **opts) ⇒ FloatLiteral

Returns a new instance of FloatLiteral.



132
133
134
135
# File 'lib/faust2ruby/ast.rb', line 132

def initialize(value, **opts)
  super(**opts)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



130
131
132
# File 'lib/faust2ruby/ast.rb', line 130

def value
  @value
end