Class: LinkThumbnailer::Parser
- Inherits:
-
Object
- Object
- LinkThumbnailer::Parser
- Defined in:
- lib/link_thumbnailer/parser.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
Instance Method Summary collapse
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
6 7 8 |
# File 'lib/link_thumbnailer/parser.rb', line 6 def document @document end |
Instance Method Details
#call(source) ⇒ Object
8 9 10 |
# File 'lib/link_thumbnailer/parser.rb', line 8 def call(source) @document ||= ::Nokogiri::HTML(source) end |