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,560 of 198,843
Downloads: 104,965

Daily

Ranking: 16,774 of 198,817
Downloads: 66

Depended by

RankDownloadsName
42,85530,500gom-script
53,10722,772klear
67,09516,473tg-can-controls-gateway
75,65213,795mssql_mysql_migrator
98,3289,091ascii-tracker
136,0454,957usb-detection-sensor

Depends on

RankDownloadsName
13,982,684,715bundler
81,472,449,177rake
221,227,223,870rspec-mocks
291,044,925,331rspec
109493,203,598byebug
174319,651,022daemons
424132,722,582guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack