Class: WAG::Table
Instance Attribute Summary collapse
-
#elements ⇒ Object
readonly
Returns the value of attribute elements.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(elements, type = :funcref) ⇒ Table
constructor
A new instance of Table.
- #to_sexpr ⇒ Object
Methods included from Encodable
Constructor Details
#initialize(elements, type = :funcref) ⇒ Table
Returns a new instance of Table.
8 9 10 11 |
# File 'lib/wag/table.rb', line 8 def initialize(elements, type = :funcref) @elements = elements @type = type end |
Instance Attribute Details
#elements ⇒ Object (readonly)
Returns the value of attribute elements.
6 7 8 |
# File 'lib/wag/table.rb', line 6 def elements @elements end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/wag/table.rb', line 6 def type @type end |
Instance Method Details
#to_sexpr ⇒ Object
13 14 15 |
# File 'lib/wag/table.rb', line 13 def to_sexpr [:table, elements, type] end |