Class: Tilia::Box

Inherits:
Object
  • Object
show all
Defined in:
lib/tilia/xml.rb

Overview

Container to avoid pass-by-reference quirks

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject

Returns the value of attribute value.



28
29
30
# File 'lib/tilia/xml.rb', line 28

def value
  @value
end