RubyGems Navigation menu

applix 0.3.4

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:
=

安裝:
=

版本列表:

  1. 0.4.14 January 16, 2015 (14.0 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.0 KB)
  5. 0.4.10 May 29, 2012 (11.5 KB)
  6. 0.3.4 August 16, 2011 (10.0 KB)
顯示所有版本(共 22)

Development 相依性套件 (8):

bundler ~> 1.0.0
jeweler ~> 1.5.2
rcov >= 0
rcov >= 0
rspec ~> 2.3.0
rspec >= 2.3.0
ZenTest >= 4.4.2
ZenTest >= 4.4.2

擁有者:

作者:

  • dirk luesebrink

SHA 256 總和檢查碼:

=

總下載次數 96,053

這個版本 4,547

版本发布:

授權:

Ruby 版本需求:

相關連結: