Unified · Split
| @@ -26,5 +26,10 @@ module Docs · 25 unmodified lines | |||
| 26 | © INRIA 1995-2020. | 26 | © INRIA 1995-2020. |
| 27 | HTML | 27 | HTML |
| 28 | 28 | ||
| 29 | def get_latest_version(opts) | ||
| 30 | doc = fetch_doc('https://www.ocaml.org/releases/', opts) | ||
| 31 | doc.css('#main-contents li > a').first.content | ||
| 32 | end | ||
| 33 | |||
| 29 | end | 34 | end |
| 30 | end | 35 | end |