Sha256: f2b80a2985fad14c848142e4eda39b84ca29d4a44cea3b8be1947d7f1ef2262a
Contents?: true
Size: 482 Bytes
Versions: 12
Compression:
Stored size: 482 Bytes
Contents
unless Object.respond_to? :tap class Object def tap yield(self) self end end end # module GLI # def command(*names, &block) # command = Command.new([names].flatten,@@next_desc,@@next_arg_name,@@next_long_desc,@@skips_pre,@@skips_post) # commands[command.name] = command # command.instance_eval(&block) # # yield command # command.tap do |c| # c.desc "Help" # c.switch [:h, :help] # end # clear_nexts # end # end
Version data entries
12 entries across 12 versions & 1 rubygems