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,461 of 198,025
Downloads: 104,678

Daily

Ranking: 35,772 of 197,989
Downloads: 3

Depended by

RankDownloadsName
42,67530,404gom-script
52,90822,682klear
67,54616,189tg-can-controls-gateway
75,50213,717mssql_mysql_migrator
98,0769,054ascii-tracker
135,6604,936usb-detection-sensor

Depends on

RankDownloadsName
13,895,243,156bundler
81,452,458,801rake
221,214,561,721rspec-mocks
291,035,635,780rspec
109488,304,292byebug
173318,583,924daemons
422131,586,414guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack