Class: Larynx::CallCommand

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

Instance Attribute Summary

Attributes inherited from Command

#command, #interrupted

Instance Method Summary collapse

Methods inherited from Command

#finalize, #initialize, #interruptable?, #interrupted?, #setup

Methods included from Callbacks

included

Constructor Details

This class inherits a constructor from Larynx::Command

Instance Method Details

#nameObject



40
41
42
# File 'lib/larynx/command.rb', line 40

def name
  "#{@command}#{" #{@params}" if @params}"
end

#to_sObject



44
45
46
47
48
# File 'lib/larynx/command.rb', line 44

def to_s
  cmd =  "#{@command}"
  cmd << " #{@params}" if @params
  cmd << "\n\n"
end