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,835 of 191,254
Downloads: 100,119

Daily

Ranking: 30,155 of 191,174
Downloads: 4

Depended by

RankDownloadsName
41,25029,606gom-script
51,57921,902klear
65,69515,710tg-can-controls-gateway
74,06213,170mssql_mysql_migrator
95,7308,775ascii-tracker
132,2084,786usb-detection-sensor

Depends on

RankDownloadsName
13,275,668,462bundler
81,267,702,122rake
221,117,499,729rspec-mocks
29962,362,170rspec
102447,113,622byebug
155308,253,231daemons
395122,226,872guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack