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,487 of 183,139
Downloads: 95,912

Daily

Ranking: 43,406 of 183,127
Downloads: 1

Depended by

RankDownloadsName
39,43327,596gom-script
49,76720,232klear
62,82014,793tg-can-controls-gateway
72,94711,872mssql_mysql_migrator
92,2428,206ascii-tracker
128,4744,412usb-detection-sensor

Depends on

RankDownloadsName
12,410,461,295bundler
10954,857,689rake
15936,658,027rspec-mocks
25818,346,165rspec
94357,384,185byebug
130264,635,322daemons
38994,098,183guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack