Categories: None [Edit]
applix
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"] }
Total
Ranking: 16,487 of 183,139
Downloads: 95,912
Daily
Ranking: 43,406 of 183,127
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
39,433 | 27,596 | gom-script |
49,767 | 20,232 | klear |
62,820 | 14,793 | tg-can-controls-gateway |
72,947 | 11,872 | mssql_mysql_migrator |
92,242 | 8,206 | ascii-tracker |
128,474 | 4,412 | usb-detection-sensor |
Depends on
Rank | Downloads | Name |
---|---|---|
1 | 2,410,461,295 | bundler |
10 | 954,857,689 | rake |
15 | 936,658,027 | rspec-mocks |
25 | 818,346,165 | rspec |
94 | 357,384,185 | byebug |
130 | 264,635,322 | daemons |
389 | 94,098,183 | guard-rspec |
Owners
# | Gravatar | Handle |
---|---|---|
1 | joe-sixpack |