Module: Metainspector
- Included in:
- Curation::Page
- Defined in:
- lib/curation/tools/metainspector.rb
Instance Method Summary collapse
Instance Method Details
#metainspector ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/curation/tools/metainspector.rb', line 3 def unless = html.nil? ? MetaInspector.new(url) : MetaInspector.new(url, document: html) end rescue log 'Curation::Page metainspector error' end |
#metatags ⇒ Object
13 14 15 16 17 |
# File 'lib/curation/tools/metainspector.rb', line 13 def ||= .['name'] rescue log 'Curation::Page metatags error' end |