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,343 of 196,694
Downloads: 103,703

Daily

Ranking: 17,208 of 196,654
Downloads: 22

Depended by

RankDownloadsName
42,36630,275gom-script
52,47022,598klear
67,00216,117tg-can-controls-gateway
74,97813,643mssql_mysql_migrator
97,3289,017ascii-tracker
134,6734,915usb-detection-sensor

Depends on

RankDownloadsName
13,725,968,350bundler
81,410,025,467rake
221,190,681,926rspec-mocks
291,017,686,770rspec
108478,522,782byebug
168316,260,265daemons
414129,457,531guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack