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: 17,708 of 189,432
Downloads: 99,741
Daily
Ranking: 36,354 of 189,408
Downloads: 3
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 41,013 | 29,494 | gom-script |
| 51,418 | 21,751 | klear |
| 65,426 | 15,650 | tg-can-controls-gateway |
| 73,920 | 13,071 | mssql_mysql_migrator |
| 95,387 | 8,740 | ascii-tracker |
| 131,798 | 4,767 | usb-detection-sensor |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 3,178,665,799 | bundler |
| 9 | 1,232,715,961 | rake |
| 21 | 1,100,272,385 | rspec-mocks |
| 29 | 949,021,172 | rspec |
| 100 | 439,412,295 | byebug |
| 152 | 306,143,375 | daemons |
| 390 | 120,402,956 | guard-rspec |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | joe-sixpack |