RubyGems Navigation menu

applix 0.4.14

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"] }

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 0.4.14 - January 16, 2015 (14 KB)
  2. 0.4.13 - January 08, 2015 (13,5 KB)
  3. 0.4.12 - January 08, 2015 (13,5 KB)
  4. 0.4.11 - July 23, 2013 (13 KB)
  5. 0.4.10 - May 29, 2012 (11,5 KB)
Zeige alle Versionen (22 total)

Runtime Abhängigkeiten (1):

daemons >= 0

Development Abhängigkeiten (6):

bundler ~> 1.3
byebug >= 0
rake >= 0
rspec >= 0

Besitzer:

Autoren:

  • art+com/dirk luesebrink

SHA 256-Prüfsumme:

03a42173c6499191ee8afe09e8eff2a29bf7955356975e556b0689523ba72520

Downloads insgesamt 93.524

Für diese Version 4.095

Lizenzen:

k.A.

Erforderliche Ruby-Version: >= 0

Links: