Module: ActiveNetsuite::MethodInflector::ClassMethods
- Defined in:
- lib/activenetsuite/helpers/method_inflector.rb
Instance Method Summary collapse
Instance Method Details
#inflected_method(method) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/activenetsuite/helpers/method_inflector.rb', line 17 def inflected_method(method) @method = method case when xmlattr_method? convert_xmlattr_method when special_method? convert_special_method else convert_regular_method end remove_instance_variable(:@method) end |
#inflected_method_valid?(method) ⇒ Boolean
31 32 33 |
# File 'lib/activenetsuite/helpers/method_inflector.rb', line 31 def inflected_method_valid?(method) instance_methods(false).include?(inflected_method(method)) end |