class AbstractNotifier::Base::ParamsProxy
Attributes
notifier_class[R]
params[R]
Public Class Methods
new(notifier_class, params)
click to toggle source
# File lib/abstract_notifier/base.rb, line 31 def initialize(notifier_class, params) @notifier_class = notifier_class @params = params end
Public Instance Methods
method_missing(method_name, *args, **kwargs)
click to toggle source
rubocop:disable Style/MethodMissingSuper
# File lib/abstract_notifier/base.rb, line 37 def method_missing(method_name, *args, **kwargs) if kwargs.empty? notifier_class.new(method_name, **params).public_send(method_name, *args) else notifier_class.new(method_name, **params).public_send(method_name, *args, **kwargs) end end
respond_to_missing?(*args)
click to toggle source
rubocop:enable Style/MethodMissingSuper
# File lib/abstract_notifier/base.rb, line 46 def respond_to_missing?(*args) notifier_class.respond_to_missing?(*args) end