Module: RoHelper
- Defined in:
- lib/ro_helper.rb
Defined Under Namespace
Classes: Cmd
Instance Method Summary collapse
Instance Method Details
#cmd(*args) ⇒ Object
12 13 14 |
# File 'lib/ro_helper.rb', line 12 def cmd(*args) cmds << Cmd.new(*args) end |
#cmd_objs ⇒ Object
22 23 24 |
# File 'lib/ro_helper.rb', line 22 def cmd_objs end |
#cmds ⇒ Object
16 17 18 19 20 |
# File 'lib/ro_helper.rb', line 16 def cmds @cmds.flatten! if @cmds.respond_to?(:flatten!) @cmds.uniq! if @cmds.respond_to?(:uniq!) @cmds ||= [] end |