Sha256: 7aaafe8ff1b3d4e5ee85d762930bbd59ea371c42de4ca7a8ba6bfa602b09a762
Contents?: true
Size: 558 Bytes
Versions: 4
Compression:
Stored size: 558 Bytes
Contents
class Gator class Command < Thor include ActAsCommand include ActAsCommandCollection #The following lines fix a bug in thor see: https://github.com/wycats/thor/pull/150 class << self def register(klass, subcommand_name, usage, description, options={}) if klass <= Thor::Group desc usage, description, options define_method(subcommand_name) { |*args| invoke klass } else desc usage, description, options subcommand subcommand_name, klass end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems