Categories: None [Edit]

applix

https://rubygems.org/gems/applix
https://github.com/crux/applix
ApplixHash#from_argv builds hashes from ARGV like argument vectors according to following examples: '-f' --> { :f => true } '--flag' --> { :flag => true } '--flag:false' --> { :flag => false } '--flag=false' --> { :flag => 'false' } '--option=value' --> { :option => "value" } '--int=1' --> { :int => "1" } '--float=2.3' --> { :float => "2.3" } '--float:2.3' --> { :float => 2.3 } '--txt="foo bar"' --> { :txt => "foo bar" } '--txt:'"foo bar"'' --> { :txt => "foo bar" } '--txt:%w{foo bar}' --> { :txt => ["foo", "bar"] } '--now:Time.now' --> { :now => #<Date: 3588595/2,0,2299161> } remaining arguments(non flag/options) are inserted as [:arguments, args], eg: Hash.from_argv %w(--foo --bar=loo 123 now) becomes { :foo => true, :bar => 'loo', :arguments => ["123", "now"] }

Total

Ranking: 17,644 of 188,838
Downloads: 99,524

Daily

Ranking: 57,789 of 188,822
Downloads: 1

Depended by

RankDownloadsName
40,90929,432gom-script
51,30821,692klear
65,30615,611tg-can-controls-gateway
73,86713,022mssql_mysql_migrator
95,1928,721ascii-tracker
131,6444,752usb-detection-sensor

Depends on

RankDownloadsName
13,125,159,491bundler
101,204,874,552rake
211,091,212,918rspec-mocks
29941,968,871rspec
100435,112,938byebug
151305,053,581daemons
393119,405,965guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack