Class: DataType
- Inherits:
-
Object
- Object
- DataType
- Defined in:
- lib/sdx/vm/datatypes.rb
Direct Known Subclasses
Block, Bool, Function, InstantiatedObj, Int, IntInternal, List, NativeFn, Nil, Num, Obj, Str
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#internal ⇒ Object
readonly
Returns the value of attribute internal.
Instance Method Summary collapse
-
#initialize(val = nil) ⇒ DataType
constructor
A new instance of DataType.
Constructor Details
#initialize(val = nil) ⇒ DataType
Returns a new instance of DataType.
8 9 10 11 |
# File 'lib/sdx/vm/datatypes.rb', line 8 def initialize(val=nil) @internal = val @fields = {} end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
5 6 7 |
# File 'lib/sdx/vm/datatypes.rb', line 5 def fields @fields end |
#internal ⇒ Object (readonly)
Returns the value of attribute internal.
4 5 6 |
# File 'lib/sdx/vm/datatypes.rb', line 4 def internal @internal end |