Module: ActiveNetsuite::MethodInflector
- Included in:
- CustomFieldRef, DeletedRecord, Record, SearchResult
- Defined in:
- lib/activenetsuite/helpers/method_inflector.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/activenetsuite/helpers/method_inflector.rb', line 4 def method_missing(method, *args, &block) if self.class.inflected_method_valid?(method) send self.class.inflected_method(method), *args, &block else super end end |
Class Method Details
.included(base) ⇒ Object
12 13 14 |
# File 'lib/activenetsuite/helpers/method_inflector.rb', line 12 def self.included(base) base.extend(ClassMethods) end |