Module: Amiba::Source::EntryFinder

Included in:
Entry
Defined in:
lib/amiba/source/entry_finder.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args, &block) ⇒ Object


7
8
9
10
11
12
# File 'lib/amiba/source/entry_finder.rb', line 7

def method_missing(method_name, *args, &block)
  proxy = FinderProxy.new
  proxy.send(method_name, *args, &block)
rescue
  raise ArgumentError.new("#{method_name} does not exist")
end