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,562 of 188,339
Downloads: 99,267

Daily

Ranking: 16,550 of 188,315
Downloads: 25

Depended by

RankDownloadsName
40,79129,316gom-script
51,22921,595klear
65,07015,586tg-can-controls-gateway
73,75412,966mssql_mysql_migrator
94,9028,703ascii-tracker
131,4224,734usb-detection-sensor

Depends on

RankDownloadsName
13,087,820,008bundler
101,191,537,815rake
201,084,226,097rspec-mocks
29936,556,175rspec
100431,985,381byebug
149304,118,495daemons
389118,711,886guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack