Module: EcoRake::Options::Forwarding
- Defined in:
- lib/eco-rake/options/forwarding.rb,
lib/eco-rake/options/forwarding/rule.rb,
lib/eco-rake/options/forwarding/proxy.rb
Overview
Offers a way to relaunch command options from options results.
Defined Under Namespace
Modules: ClassMethods Classes: Proxy, Rule
Instance Method Summary collapse
-
#forward_option(sym, from: options) ⇒ Value
The value defined by the
rulelinked toopt. -
#forward_options(*syms, from: options) ⇒ Array<Value>
The values defined by the
ruleslinked toopts.
Instance Method Details
#forward_option(sym, from: options) ⇒ Value
Returns the value defined by the rule linked to opt.
34 35 36 |
# File 'lib/eco-rake/options/forwarding.rb', line 34 def forward_option(sym, from: ) self.class..forward(sym, from: from) end |
#forward_options(*syms, from: options) ⇒ Array<Value>
Returns the values defined by the rules linked to opts.
40 41 42 |
# File 'lib/eco-rake/options/forwarding.rb', line 40 def (*syms, from: ) syms.map {|sym| forward_option(sym, from: from)} end |