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

Version Path
pagoda-0.7.8 lib/pagoda/cli/override.rb
pagoda-0.7.7 lib/pagoda/cli/override.rb
pagoda-0.7.6 lib/pagoda/cli/override.rb
pagoda-0.7.5 lib/pagoda/cli/override.rb
pagoda-0.7.4 lib/pagoda/cli/override.rb
pagoda-0.7.3 lib/pagoda/cli/override.rb
pagoda-0.7.2 lib/pagoda/cli/override.rb
pagoda-0.7.1 lib/pagoda/cli/override.rb
pagoda-0.7.0 lib/pagoda/cli/override.rb
pagoda-0.6.2 lib/pagoda/cli/override.rb
pagoda-0.6.1 lib/pagoda/cli/override.rb
pagoda-0.6.0 lib/pagoda/cli/override.rb