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,708 of 189,432
Downloads: 99,741

Daily

Ranking: 36,354 of 189,408
Downloads: 3

Depended by

RankDownloadsName
41,01329,494gom-script
51,41821,751klear
65,42615,650tg-can-controls-gateway
73,92013,071mssql_mysql_migrator
95,3878,740ascii-tracker
131,7984,767usb-detection-sensor

Depends on

RankDownloadsName
13,178,665,799bundler
91,232,715,961rake
211,100,272,385rspec-mocks
29949,021,172rspec
100439,412,295byebug
152306,143,375daemons
390120,402,956guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack