RubyGems Navigation menu

applix 0.4.11

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

Versions:

  1. 0.4.14 - January 16, 2015 (14 ko)
  2. 0.4.13 - January 08, 2015 (13,5 ko)
  3. 0.4.12 - January 08, 2015 (13,5 ko)
  4. 0.4.11 - July 23, 2013 (13 ko)
  5. 0.4.10 - May 29, 2012 (11,5 ko)
Voir toutes les versions (22)

Dépendances de Runtime (1):

Auteurs:

  • art+com/dirk luesebrink

Propriétaires:

Eccad02bf8d4e74ebeed807022d38a9b

Total de contrôle SHA 256:

630fe79b339e80425062128840b7b71fc83723aef0bd2eeb9655d5f09bfe4bce

Total de téléchargements 58 117

Pour cette version 2 116

Gemfile:
= Copier Copié!

installation:
=

Licences:

aucune

Version de Ruby requise: None

Liens: