Module: ActiveFedora::Delegation

Extended by:
ActiveSupport::Concern
Included in:
Relation
Defined in:
lib/active_fedora/relation/delegation.rb

Overview

:nodoc:

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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


13
14
15
16
17
18
19
20
# File 'lib/active_fedora/relation/delegation.rb', line 13

def method_missing(method, *args, &block)
  if Array.method_defined?(method)
    self.class.delegate method, :to => :to_a
    to_a.send(method, *args, &block)
  else
    super
  end
end