class ShellB::Commander

Constants

DEFAULT_COMMANDS

Attributes

shell[R]

Public Class Methods

alias_command(name, *args) click to toggle source
# File lib/shellb/commander.rb, line 14
def alias_command(name, *args)
  define_method(name) do |*opts|
    Command.new(shell, *args, *opts)
  end
end
def_system_command(name, path = nil) click to toggle source
# File lib/shellb/commander.rb, line 8
def def_system_command(name, path = nil)
  define_method(name) do |*args|
    Command.new(shell, path || name, *args)
  end
end
new(shell) click to toggle source
# File lib/shellb/commander.rb, line 28
def initialize(shell)
  @shell = shell
end