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,125 of 193,130
Downloads: 101,243

Daily

Ranking: 26,938 of 193,101
Downloads: 19

Depended by

RankDownloadsName
41,72129,906gom-script
52,08722,155klear
66,21615,908tg-can-controls-gateway
74,36613,392mssql_mysql_migrator
96,4058,879ascii-tracker
133,0964,845usb-detection-sensor

Depends on

RankDownloadsName
13,432,663,778bundler
81,327,099,370rake
221,144,043,167rspec-mocks
29982,047,161rspec
102459,280,852byebug
162311,335,718daemons
400124,988,465guard-rspec

Owners

#GravatarHandle
1iconjoe-sixpack