Object
# File lib/archive/tar/minitar/command.rb, line 249 249: def <<(command) 250: add(command) 251: end
# File lib/archive/tar/minitar/command.rb, line 278 278: def [](cmd) 279: self.command(cmd) 280: end
# File lib/archive/tar/minitar/command.rb, line 232 232: def add(command) 233: command = command.new if command.kind_of?(Class) 234: 235: @commands ||= {} 236: if @commands.has_key?(command.name) 237: raise CommandAlreadyExists 238: else 239: @commands[command.name] = command 240: end 241: 242: if command.respond_to?(:altname) 243: unless @commands.has_key?(command.altname) 244: @commands[command.altname] = command 245: end 246: end 247: end
# File lib/archive/tar/minitar/command.rb, line 270 270: def command(command) 271: if command?(command) 272: @commands[command] 273: else 274: @default 275: end 276: end
# File lib/archive/tar/minitar/command.rb, line 290 290: def [](args, opts = {}, ioe = {}) 291: call(args, opts, ioe) 292: end
# File lib/archive/tar/minitar/command.rb, line 298 298: def call(args, opts = {}, ioe = {}) 299: raise AbstractCommandError 300: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.