Class: WAG::Param
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(type, label = nil) ⇒ Param
constructor
A new instance of Param.
- #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/param.rb', line 7 def label @label end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/wag/param.rb', line 7 def type @type end |
Instance Method Details
#to_sexpr ⇒ Object
14 15 16 17 18 |
# File 'lib/wag/param.rb', line 14 def to_sexpr return [:param, label.to_sexpr, type.to_sexpr] if label [:param, type.to_sexpr] end |