Object
# File lib/archive/tar/minitar/command.rb, line 249 def <<(command) add(command) end
# File lib/archive/tar/minitar/command.rb, line 278 def [](cmd) self.command(cmd) end
# File lib/archive/tar/minitar/command.rb, line 232 def add(command) command = command.new if command.kind_of?(Class) @commands ||= {} if @commands.has_key?(command.name) raise CommandAlreadyExists else @commands[command.name] = command end if command.respond_to?(:altname) unless @commands.has_key?(command.altname) @commands[command.altname] = command end end end
# File lib/archive/tar/minitar/command.rb, line 270 def command(command) if command?(command) @commands[command] else @default end end
# File lib/archive/tar/minitar/command.rb, line 290 def [](args, opts = {}, ioe = {}) call(args, opts, ioe) end
# File lib/archive/tar/minitar/command.rb, line 298 def call(args, opts = {}, ioe = {}) raise AbstractCommandError end
Generated with the Darkfish Rdoc Generator 2.