Module: Yadic::Decorator

Defined in:
lib/yadic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#wrappedObject (readonly)

Returns the value of attribute wrapped.



47
48
49
# File 'lib/yadic.rb', line 47

def wrapped
  @wrapped
end

Instance Method Details

#decorating(wrapped) ⇒ Object



48
49
50
51
# File 'lib/yadic.rb', line 48

def decorating(wrapped)
  @wrapped = wrapped
  self
end