Sha256: 57fcdad2d5a8fa26dc767a6717e3b2dedf6825c0dea1f44311454272ebddfc57

Contents?: true

Size: 199 Bytes

Versions: 1

Compression:

Stored size: 199 Bytes

Contents

require 'optparse'

module Upoj

  class Opts < OptionParser
    attr_accessor :funnel

    def on_funnel name, *args
      super(*args){ |val| (@funnel ||= Hash.new)[name] = val }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
upoj-rb-0.0.0 lib/upoj-rb/opts.rb