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