Module: EcoRake::Options::Forwarding::ClassMethods
- Defined in:
- lib/eco-rake/options/forwarding.rb
Instance Method Summary collapse
-
#option_forwarding(**rules) ⇒ Object
Declare the forwarding rules for options.
-
#options_proxy ⇒ Object
Service class to forward options.
Instance Method Details
#option_forwarding(**rules) ⇒ Object
Declare the forwarding rules for options.
24 25 26 27 28 |
# File 'lib/eco-rake/options/forwarding.rb', line 24 def option_forwarding(**rules) rules.each do |sym, rule| .add(sym, rule, override: true) end end |
#options_proxy ⇒ Object
Service class to forward options.
18 19 20 |
# File 'lib/eco-rake/options/forwarding.rb', line 18 def @options_proxy ||= EcoRake::Options::Forwarding::Proxy.new(self) end |