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,327 of 196,079
Downloads: 103,195

Daily

Ranking: 20,345 of 196,051
Downloads: 23

Depended by

RankDownloadsName
42,23730,260gom-script
52,41322,550klear
66,87616,107tg-can-controls-gateway
74,84513,632mssql_mysql_migrator
97,1609,012ascii-tracker
134,3434,911usb-detection-sensor

Depends on

RankDownloadsName
13,664,465,017bundler
81,393,380,379rake
221,181,077,377rspec-mocks
291,010,274,160rspec
108474,791,946byebug
168315,336,941daemons
411128,590,571guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack