Class: Julius::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/julius/command.rb

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

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_sObject



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