Class: Faust2Ruby::AST::IntLiteral

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

Overview

Integer literal

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

#initialize(value, **opts) ⇒ IntLiteral

Returns a new instance of IntLiteral.



122
123
124
125
# File 'lib/faust2ruby/ast.rb', line 122

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



120
121
122
# File 'lib/faust2ruby/ast.rb', line 120

def value
  @value
end