Module: EacRubyUtils::Listable::InstanceMethods
- Defined in:
- lib/eac_ruby_utils/listable/instance_methods.rb
Constant Summary
collapse
- LISTABLE_INSTANCE_VALUE_METHODS =
%w[label description].freeze
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
8
9
10
11
|
# File 'lib/eac_ruby_utils/listable/instance_methods.rb', line 8
def method_missing(name, *args, &block)
list, method = parse_method(name)
list && method ? list.instance_value(self).send(method) : super
end
|
Instance Method Details
#respond_to_missing?(name, include_all = false) ⇒ Boolean
13
14
15
16
|
# File 'lib/eac_ruby_utils/listable/instance_methods.rb', line 13
def respond_to_missing?(name, include_all = false)
list, method = parse_method(name)
list && method ? true : super
end
|