Class: Omnium::Parser::AST::DataType
- Defined in:
- lib/omnium/parser/ast/data_type.rb
Overview
Int or float for example
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(token) ⇒ DataType
constructor
A new instance of DataType.
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
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/omnium/parser/ast/data_type.rb', line 8 def value @value end |