Class: Julius::Command
- Inherits:
-
Object
- Object
- Julius::Command
- Defined in:
- lib/julius/command.rb
Direct Known Subclasses
Activategram, Activateprocess, Addgram, Addprocess, Addword, Changegram, Currentprocess, Deactivategram, Deactivateprocess, Delgram, Delprocess, Die, Graminfo, Inputonchange, Listprocess, Pause, Resume, Shiftprocess, Status, Syncgram, Terminate, Version
Defined Under Namespace
Classes: Activategram, Activateprocess, Addgram, Addprocess, Addword, Changegram, Currentprocess, Deactivategram, Deactivateprocess, Delgram, Delprocess, Die, Graminfo, Inputonchange, Listprocess, Pause, Resume, Shiftprocess, Status, Syncgram, Terminate, Version
Instance Method Summary collapse
-
#initialize(*args) ⇒ Command
constructor
A new instance of Command.
- #to_s ⇒ Object
Constructor Details
#initialize(*args) ⇒ Command
Returns a new instance of Command.
26 27 28 |
# File 'lib/julius/command.rb', line 26 def initialize(*args) @args = args end |
Instance Method Details
#to_s ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/julius/command.rb', line 30 def to_s if @args.size > 0 "#{name} #{@args.join(' ')}" else name end end |