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,270 of 186,959
Downloads: 97,667

Daily

Ranking: 52,232 of 186,713
Downloads: 13

Depended by

RankDownloadsName
40,40128,483gom-script
50,82620,884klear
64,31115,183tg-can-controls-gateway
73,80112,370mssql_mysql_migrator
94,0368,438ascii-tracker
130,4404,565usb-detection-sensor

Depends on

RankDownloadsName
12,905,736,219bundler
101,128,098,871rake
191,048,768,703rspec-mocks
27909,387,510rspec
98414,508,575byebug
138297,571,742daemons
383114,665,975guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack