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,490 of 187,922
Downloads: 98,922

Daily

Ranking: 21,298 of 187,912
Downloads: 23

Depended by

RankDownloadsName
40,67029,171gom-script
51,08321,482klear
64,93715,506tg-can-controls-gateway
73,68512,867mssql_mysql_migrator
94,6898,654ascii-tracker
131,2154,699usb-detection-sensor

Depends on

RankDownloadsName
13,041,798,299bundler
101,176,150,329rake
191,075,332,750rspec-mocks
28929,651,273rspec
100427,613,359byebug
145303,095,292daemons
390117,718,080guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack