RubyGems Navigation menu

applix 0.2.0

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 => # } 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:
= Copiar al portapapeles ¡Copiado!

instalar:
=

Versiones:

  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)
  6. 0.2.0 - November 15, 2009 (7,5 KB)
Mostrar todas las versiones (22 total)

dependencias de Development (1):

rspec >= 0

Propietarios:

Autores:

  • dirk luesebrink

SHA 256 checksum:

751ef032b221c78b498fea5a1ef443a8b00272ddf76e1b3be7c00a4c7d4b95af

Total de descargas 93.547

Para esta versión 4.879

Licencias:

N/A

Versión de Ruby requerida: Ninguno

Enlace: