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: 15,993 of 180,543
Downloads: 93,686

Daily

Ranking: 18,561 of 180,534
Downloads: 22

Depended by

RankDownloadsName
38,53226,952gom-script
49,12019,602klear
61,65214,457tg-can-controls-gateway
72,68511,391mssql_mysql_migrator
91,0707,988ascii-tracker
126,9254,312usb-detection-sensor

Depends on

RankDownloadsName
12,086,615,891bundler
13874,703,326rspec-mocks
16857,173,529rake
23769,656,811rspec
93322,795,471byebug
130242,066,331daemons
38883,239,735guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack