Class: Tilia::Http::Box

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

Overview

Class to fix rubys real-world “pass-by-reference” shortcommings

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject

Returns the value of attribute value.



445
446
447
# File 'lib/tilia/http/client.rb', line 445

def value
  @value
end