Class: Tilia::Box
- Inherits:
-
Object
- Object
- Tilia::Box
- Defined in:
- lib/tilia/xml.rb
Overview
Container to avoid pass-by-reference quirks
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(v = nil) ⇒ Box
constructor
A new instance of Box.
Constructor Details
#initialize(v = nil) ⇒ Box
Returns a new instance of Box.
30 31 32 |
# File 'lib/tilia/xml.rb', line 30 def initialize(v = nil) @value = v end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
28 29 30 |
# File 'lib/tilia/xml.rb', line 28 def value @value end |