Class: WAG::Global
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(label, type) ⇒ Global
constructor
A new instance of Global.
- #to_sexpr ⇒ Object
Methods included from Encodable
Constructor Details
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
7 8 9 |
# File 'lib/wag/global.rb', line 7 def label @label end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/wag/global.rb', line 7 def type @type end |
Instance Method Details
#to_sexpr ⇒ Object
14 15 16 |
# File 'lib/wag/global.rb', line 14 def to_sexpr [:global, label.to_sexpr, type.to_sexpr] end |