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: 16,024 of 180,671
Downloads: 93,802

Daily

Ranking: 22,234 of 180,660
Downloads: 23

Depended by

RankDownloadsName
38,55626,999gom-script
49,17619,639klear
61,71714,482tg-can-controls-gateway
72,69811,418mssql_mysql_migrator
91,1547,998ascii-tracker
127,0064,318usb-detection-sensor

Depends on

RankDownloadsName
12,101,349,740bundler
13877,610,073rspec-mocks
16861,639,035rake
24771,889,602rspec
93324,370,824byebug
130243,048,943daemons
38883,665,783guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack