Method: ROM::Relation::ClassInterface#view_methods
- Defined in:
- lib/rom/relation/class_interface.rb
#view_methods ⇒ Object
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.
277 278 279 280 281 282 |
# File 'lib/rom/relation/class_interface.rb', line 277 def view_methods ancestor_methods = ancestors.reject { |klass| klass == self } .map(&:instance_methods).flatten(1) instance_methods - ancestor_methods + auto_curried_methods.to_a end |