Method: Markdownplus::IncludeHandler.cached
- Defined in:
- lib/markdownplus/handler.rb
.cached(url) ⇒ Object
26 27 28 29 30 |
# File 'lib/markdownplus/handler.rb', line 26 def self.cached(url) return @@cache[url] if @@cache[url] @@cache[url] = open(url).read @@cache[url] end |