Class: WAG::Local
Overview
Local is not an instruction, but a nested keyword.
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) ⇒ Local
constructor
A new instance of Local.
- #to_sexpr ⇒ Object
Methods included from Encodable
Constructor Details
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
8 9 10 |
# File 'lib/wag/local.rb', line 8 def label @label end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/wag/local.rb', line 8 def type @type end |
Instance Method Details
#to_sexpr ⇒ Object
15 16 17 |
# File 'lib/wag/local.rb', line 15 def to_sexpr [:local, label.to_sexpr, type.to_sexpr] end |