Module: ROM::Proxy
- Included in:
- Session::Environment, Session::Mapper, Session::Relation
- Defined in:
- lib/rom/support/proxy.rb
Defined Under Namespace
Modules: Constructor
Class Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (private)
28 29 30 |
# File 'lib/rom/support/proxy.rb', line 28 def method_missing(method, *args, &block) forwardable?(method) ? forward(method, *args, &block) : super end |
Class Method Details
.included(descendant) ⇒ Object
7 8 9 10 11 |
# File 'lib/rom/support/proxy.rb', line 7 def self.included(descendant) descendant.send :undef_method, *descendant.superclass.public_instance_methods(false).map(&:to_s) descendant.extend(Constructor) super end |