class Adorn::ObjectDecorator

Public Class Methods

new(object) click to toggle source

@private @return [SimpleDelegator]

# File lib/adorn/object_decorator.rb, line 6
def initialize(object)
  @object = SimpleDelegator.new(object)
end

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/adorn/object_decorator.rb, line 10
def method_missing(method, *args, &block)
  @object.send(method, *args, &block)
rescue => e
  super(method, *args, &block)
end
respond_to_missing?(method,*) click to toggle source
Calls superclass method
# File lib/adorn/object_decorator.rb, line 16
def respond_to_missing?(method,*)
  method =~ /#{method.to_s}/ || super
end