Module: ROM::Pipeline::Proxy Private

Included in:
Commands::Graph, Composite, Relation::Graph
Defined in:
lib/rom/pipeline.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Forwards messages to the left side of a pipeline

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/rom/pipeline.rb', line 65

def method_missing(name, *args, &block)
  if left.respond_to?(name)
    response = left.__send__(name, *args, &block)

    if decorate?(response)
      self.class.new(response, right)
    else
      response
    end
  else
    super
  end
end

Instance Method Details

#respond_to_missing?(name, include_private = false) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


51
52
53
# File 'lib/rom/pipeline.rb', line 51

def respond_to_missing?(name, include_private = false)
  left.respond_to?(name) || super
end