RubyGems Navigation menu

applix 0.4.5

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 (14KB)
  2. 0.4.13 - January 08, 2015 (13.5KB)
  3. 0.4.12 - January 08, 2015 (13.5KB)
  4. 0.4.11 - July 23, 2013 (13KB)
  5. 0.4.10 - May 29, 2012 (11.5KB)
  6. 0.4.5 - March 26, 2012 (10.5KB)
全てのバージョンを表示(全22件)

Development依存関係 (7):

所有者:

作者:

  • art+com/dirk luesebrink

SHA 256チェックサム:

a7946e0149811162cffc315b120cef5075cf28690fc64e928afa372e02c5ad26

累計ダウンロード数 93,525

このバージョンのみ 4,282

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: