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: 18,378 of 197,108
Downloads: 104,439

Daily

Ranking: 17,725 of 197,085
Downloads: 22

Depended by

RankDownloadsName
42,52530,341gom-script
52,70222,637klear
67,35516,148tg-can-controls-gateway
75,29713,680mssql_mysql_migrator
97,7429,040ascii-tracker
135,3054,924usb-detection-sensor

Depends on

RankDownloadsName
13,798,773,199bundler
81,429,009,039rake
221,201,223,976rspec-mocks
291,025,659,218rspec
108482,828,247byebug
168317,347,790daemons
418130,400,646guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack