Class: CoerceableWrapper

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#objObject (readonly)

Returns the value of attribute obj.



27
28
29
# File 'lib/flex_coerce/flex_coerce.rb', line 27

def obj
  @obj
end