class Roby::Interface::SubcommandClient

Representation of a subcommand on {Interface} on the shell side

Attributes

commands[R]

@return [String] the set of commands on this subcommand

description[R]

@return [String] the subcommand description

name[R]

@return [ @return [String] the subcommand name

parent[R]

@return [ShellClient,ShellSubcommand] the parent shell /

subcommand

Public Class Methods

new(parent, name, description, commands) click to toggle source
# File lib/roby/interface/subcommand_client.rb, line 16
def initialize(parent, name, description, commands)
    @parent, @name, @description, @commands =
        parent, name, description, commands
end

Public Instance Methods

call(path, m, *args) click to toggle source
# File lib/roby/interface/subcommand_client.rb, line 21
def call(path, m, *args)
    parent.call([name] + path, m, *args)
end
method_missing(m, *args) click to toggle source
# File lib/roby/interface/subcommand_client.rb, line 29
def method_missing(m, *args)
    parent.call([name], m, *args)
end
path() click to toggle source
# File lib/roby/interface/subcommand_client.rb, line 25
def path
    parent.path + [name]
end