Class: StarlarkCompiler::AST::Number

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

Constant Summary

Constants inherited from Node

StarlarkCompiler::AST::Node::TYPE

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number) ⇒ Number

Returns a new instance of Number.



94
95
96
# File 'lib/starlark_compiler/ast.rb', line 94

def initialize(number)
  @number = number
end

Instance Attribute Details

#numberObject (readonly)

Returns the value of attribute number.



93
94
95
# File 'lib/starlark_compiler/ast.rb', line 93

def number
  @number
end