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,295 of 195,377
Downloads: 102,243

Daily

Ranking: 12,875 of 195,357
Downloads: 31

Depended by

RankDownloadsName
42,11030,116gom-script
52,35622,392klear
66,69516,032tg-can-controls-gateway
74,70713,542mssql_mysql_migrator
96,9318,963ascii-tracker
133,8374,891usb-detection-sensor

Depends on

RankDownloadsName
13,589,184,664bundler
81,372,888,227rake
221,169,205,716rspec-mocks
291,001,197,179rspec
106469,931,730byebug
165314,125,272daemons
409127,417,627guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack