Class: Matryoshka::External
- Inherits:
-
Object
- Object
- Matryoshka::External
- Defined in:
- lib/matryoshka/external.rb
Class Method Summary collapse
Class Method Details
.find(uri, options = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/matryoshka/external.rb', line 4 def self.find(uri, = {}) [200,{}.merge(),open(uri)] rescue [404,{}.merge(),'<p>404 on external</p>'] end |