class EasyDecorate::Decorator

Public Class Methods

new(object) click to toggle source
# File lib/easy_decorate.rb, line 8
def initialize(object)
  @object = object
end

Public Instance Methods

method_missing(method_name, *args, &block) click to toggle source
Calls superclass method
# File lib/easy_decorate.rb, line 12
def method_missing(method_name, *args, &block)
  if @object.respond_to?(method_name)
    @object.send(method_name, *args, &block)
  else
    super
  end
end
respond_to_missing?(method_name, include_private = false) click to toggle source
# File lib/easy_decorate.rb, line 20
def respond_to_missing?(method_name, include_private = false)
  @object.respond_to?(method_name)
end
undecorated() click to toggle source
# File lib/easy_decorate.rb, line 24
def undecorated
  @object
end