Class: WAG::Memory
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Memory
constructor
A new instance of Memory.
- #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/memory.rb', line 7 def label @label end |
#max ⇒ Object (readonly)
Returns the value of attribute max.
7 8 9 |
# File 'lib/wag/memory.rb', line 7 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
7 8 9 |
# File 'lib/wag/memory.rb', line 7 def min @min end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
7 8 9 |
# File 'lib/wag/memory.rb', line 7 def number @number end |
Instance Method Details
#to_sexpr ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/wag/memory.rb', line 15 def to_sexpr [:memory].tap do |expr| expr.push(label.to_sexpr) if label expr.push(number) if min expr.push(min) expr.push(max) if max end end end |