Class: Taoism::Runtime::DataType

Inherits:
Struct
  • Object
show all
Defined in:
lib/taoism/runtime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



21
22
23
# File 'lib/taoism/runtime.rb', line 21

def fields
  @fields
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



21
22
23
# File 'lib/taoism/runtime.rb', line 21

def name
  @name
end

Instance Method Details

#to_sObject



22
23
24
# File 'lib/taoism/runtime.rb', line 22

def to_s
  "<data #{name}>"
end