Class: Omnium::Parser::AST::DataType

Inherits:
Base
  • Object
show all
Defined in:
lib/omnium/parser/ast/data_type.rb

Overview

Int or float for example

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ DataType

Returns a new instance of DataType.



10
11
12
# File 'lib/omnium/parser/ast/data_type.rb', line 10

def initialize(token)
  @value = token.value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/omnium/parser/ast/data_type.rb', line 8

def value
  @value
end