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,461 of 198,025
Downloads: 104,678
Daily
Ranking: 35,772 of 197,989
Downloads: 3
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 42,675 | 30,404 | gom-script |
| 52,908 | 22,682 | klear |
| 67,546 | 16,189 | tg-can-controls-gateway |
| 75,502 | 13,717 | mssql_mysql_migrator |
| 98,076 | 9,054 | ascii-tracker |
| 135,660 | 4,936 | usb-detection-sensor |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 3,895,243,156 | bundler |
| 8 | 1,452,458,801 | rake |
| 22 | 1,214,561,721 | rspec-mocks |
| 29 | 1,035,635,780 | rspec |
| 109 | 488,304,292 | byebug |
| 173 | 318,583,924 | daemons |
| 422 | 131,586,414 | guard-rspec |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | joe-sixpack |