class RCoLi::Command

Public Class Methods

new(name) click to toggle source
# File lib/rcoli/model.rb, line 176
def initialize(name)
  @name = name
end

Public Instance Methods

full_command() click to toggle source
# File lib/rcoli/model.rb, line 182
def full_command
  command = self
  result = []
  while(command.parent) do
    result << command.value_of_name
    command = command.parent
  end
  return result.reverse.join(' ')
end