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,380 of 197,134
Downloads: 104,461

Daily

Ranking: 19,452 of 197,107
Downloads: 22

Depended by

RankDownloadsName
42,52230,348gom-script
52,71222,637klear
67,37316,148tg-can-controls-gateway
75,31413,680mssql_mysql_migrator
97,7639,040ascii-tracker
135,3234,924usb-detection-sensor

Depends on

RankDownloadsName
13,803,347,559bundler
81,430,104,300rake
221,201,809,100rspec-mocks
291,026,084,732rspec
108483,079,614byebug
168317,401,998daemons
418130,453,315guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack