Sha256: 474e9141c4f78521574e3b0a14987727d2abda93060241e96a8e1003bcdc2132

Contents?: true

Size: 291 Bytes

Versions: 6

Compression:

Stored size: 291 Bytes

Contents

# Extensions to Trollop::Parser

module Trollop

  class Parser
    
    def educate_banner stream=$stdout
      width
      @order.select {|what, _| what == :text}.each do |what, opt|
        stream.puts wrap(opt)
      end
    end
    alias :educate_text :educate_banner
    
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ing-0.2.7 lib/ing/trollop/parser.rb
ing-0.2.2 lib/ing/trollop/parser.rb
ing-0.2.1 lib/ing/trollop/parser.rb
ing-0.1.5 lib/ing/trollop/parser.rb
ing-0.1.2 lib/ing/trollop/parser.rb
ing-0.1.1 lib/ing/trollop/parser.rb