Module: Origin::Forwardable
- Defined in:
- lib/origin/forwardable.rb
Overview
Allows for easy delegation of origin queryable instance methods to a specific method.
Instance Method Summary collapse
-
#select_with(receiver) ⇒ Array<Symbol>
Tells origin with method on the class to delegate to when calling an original selectable or optional method on the class.
Instance Method Details
#select_with(receiver) ⇒ Array<Symbol>
Tells origin with method on the class to delegate to when calling an original selectable or optional method on the class.
26 27 28 29 30 |
# File 'lib/origin/forwardable.rb', line 26 def select_with(receiver) (Selectable.forwardables + Optional.forwardables).each do |name| __forward__(name, receiver) end end |