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: 18,295 of 195,377
Downloads: 102,243
Daily
Ranking: 12,875 of 195,357
Downloads: 31
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 42,110 | 30,116 | gom-script |
| 52,356 | 22,392 | klear |
| 66,695 | 16,032 | tg-can-controls-gateway |
| 74,707 | 13,542 | mssql_mysql_migrator |
| 96,931 | 8,963 | ascii-tracker |
| 133,837 | 4,891 | usb-detection-sensor |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 3,589,184,664 | bundler |
| 8 | 1,372,888,227 | rake |
| 22 | 1,169,205,716 | rspec-mocks |
| 29 | 1,001,197,179 | rspec |
| 106 | 469,931,730 | byebug |
| 165 | 314,125,272 | daemons |
| 409 | 127,417,627 | guard-rspec |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | joe-sixpack |