Class: Tilia::Http::Box
- Inherits:
-
Object
- Object
- Tilia::Http::Box
- Defined in:
- lib/tilia/http/client.rb
Overview
Class to fix rubys real-world “pass-by-reference” shortcommings
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.
447 448 449 |
# File 'lib/tilia/http/client.rb', line 447 def initialize(v = nil) @value = v end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
445 446 447 |
# File 'lib/tilia/http/client.rb', line 445 def value @value end |