Sha256: b60d1f340a79bc4335af683189683cc8139c698bc3f112c47841382e7ce104f3
Contents?: true
Size: 300 Bytes
Versions: 1
Compression:
Stored size: 300 Bytes
Contents
module Klipp class ParameterList < Array def options select { |x| x.to_s[0, 1] == '-' } end def arguments self - options end #def splice_option(name) # !!delete(name) #end def shift_argument (arg = arguments[0]) && delete(arg) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
klipp-0.0.1 | lib/klipp/parameter_list.rb |