Class: BCDD::Contract::Core::Proxy
- Inherits:
-
Object
- Object
- BCDD::Contract::Core::Proxy
- Defined in:
- lib/bcdd/contract/core/proxy.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(object) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(object) ⇒ Proxy
Returns a new instance of Proxy.
15 16 17 |
# File 'lib/bcdd/contract/core/proxy.rb', line 15 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
13 14 15 |
# File 'lib/bcdd/contract/core/proxy.rb', line 13 def object @object end |
Class Method Details
.[](object) ⇒ Object
5 6 7 |
# File 'lib/bcdd/contract/core/proxy.rb', line 5 def self.[](object) new(object) end |
.to_proc ⇒ Object
9 10 11 |
# File 'lib/bcdd/contract/core/proxy.rb', line 9 def self.to_proc ->(object) { new(object) } end |