Module: Kubes::Args::Dsl
- Included in:
- Custom
- Defined in:
- lib/kubes/args/dsl.rb
Instance Method Summary collapse
Instance Method Details
#command(*commands, **props) ⇒ Object Also known as: commands
3 4 5 6 7 |
# File 'lib/kubes/args/dsl.rb', line 3 def command(*commands, **props) commands.each do |name| each_command(name, props) end end |
#each_command(name, props = {}) ⇒ Object
10 11 12 |
# File 'lib/kubes/args/dsl.rb', line 10 def each_command(name, props={}) @commands[name.to_s] = props end |