module ActivePStore::DynamicMatchers

Public Instance Methods

respond_to?(name, include_private = false) click to toggle source
Calls superclass method
# File lib/active_pstore/dynamic_matchers.rb, line 8
def respond_to?(name, include_private = false)
  if self == Base
    super
  else
    match = Method.match(self, name)
    match || super
  end
end

Private Instance Methods

method_missing(name, *arguments, &block) click to toggle source
Calls superclass method
# File lib/active_pstore/dynamic_matchers.rb, line 19
def method_missing(name, *arguments, &block)
  match = Method.match(self, name)

  if match
    match.define
    public_send(name, *arguments, &block)
  else
    super
  end
end