Method: Configurate::Proxy#method_missing
- Defined in:
- lib/configurate/proxy.rb
#method_missing(setting, *args, &block) ⇒ Object
rubocop:disable Style/MethodMissingSuper we handle all calls rubocop:disable Style/MissingRespondToMissing we override respond_to? instead
72 73 74 75 76 77 78 79 80 |
# File 'lib/configurate/proxy.rb', line 72 def method_missing setting, *args, &block return target.public_send(setting, *args, &block) if target_respond_to? setting @setting_path << setting return target(*args) if @setting_path.question_action_or_setter? self end |