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,773 of 189,968
Downloads: 99,921

Daily

Ranking: 50,715 of 189,933
Downloads: 3

Depended by

RankDownloadsName
41,13829,556gom-script
51,49521,835klear
65,59615,676tg-can-controls-gateway
74,01813,117mssql_mysql_migrator
95,5718,757ascii-tracker
131,9954,774usb-detection-sensor

Depends on

RankDownloadsName
13,223,052,755bundler
81,249,142,844rake
211,108,011,513rspec-mocks
29955,025,919rspec
102443,018,525byebug
153307,130,062daemons
393121,244,048guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack