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,895 of 192,062
Downloads: 100,649

Daily

Ranking: 20,569 of 192,034
Downloads: 40

Depended by

RankDownloadsName
41,49929,736gom-script
51,85722,007klear
66,03415,771tg-can-controls-gateway
74,27113,254mssql_mysql_migrator
96,0708,814ascii-tracker
132,6254,808usb-detection-sensor

Depends on

RankDownloadsName
13,334,693,029bundler
81,289,326,548rake
221,127,799,615rspec-mocks
29969,971,018rspec
102451,934,879byebug
158309,484,877daemons
399123,278,881guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack