module Decorum::Decorations::Intercept

Public Instance Methods

method_missing(message, *args, &block) click to toggle source
Calls superclass method
# File lib/decorum/decorations.rb, line 132
def method_missing(message, *args, &block)
  response = catch :chain_stop do
    @_decorum_chain_reference.send(message, *args, &block)
  end
  response.is_a?(Decorum::ChainStop) ? super : response
end
respond_to_missing?(message, include_private = false) click to toggle source
Calls superclass method
# File lib/decorum/decorations.rb, line 139
def respond_to_missing?(message, include_private = false)
  _decorum_raw_decorators.each { |d| return true if d.respond_to?(message) }
  super
end