Class: CoerceableWrapper
- Inherits:
-
Object
- Object
- CoerceableWrapper
- Defined in:
- lib/flex_coerce/flex_coerce.rb
Overview
This class is a wrapper for object which redefines methods leading to coercion
Instance Attribute Summary collapse
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
Instance Method Summary collapse
-
#initialize(obj) ⇒ CoerceableWrapper
constructor
A new instance of CoerceableWrapper.
Constructor Details
#initialize(obj) ⇒ CoerceableWrapper
Returns a new instance of CoerceableWrapper.
28 29 30 |
# File 'lib/flex_coerce/flex_coerce.rb', line 28 def initialize(obj) @obj = obj end |
Instance Attribute Details
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
27 28 29 |
# File 'lib/flex_coerce/flex_coerce.rb', line 27 def obj @obj end |