Class: Blogit::Parsers::HtmlParser

Inherits:
Object
  • Object
show all
Defined in:
lib/blogit/parsers/html_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ HtmlParser

Returns a new instance of HtmlParser.



8
9
10
# File 'lib/blogit/parsers/html_parser.rb', line 8

def initialize(content)
  @content = content
end

Instance Attribute Details

#contentObject (readonly) Also known as: parsed

A String containing the content to be parsed



4
5
6
# File 'lib/blogit/parsers/html_parser.rb', line 4

def content
  @content
end