Class: Blogit::Parsers::HtmlParser
- Inherits:
-
Object
- Object
- Blogit::Parsers::HtmlParser
- Defined in:
- lib/blogit/parsers/html_parser.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
(also: #parsed)
readonly
A String containing the content to be parsed.
Instance Method Summary collapse
-
#initialize(content) ⇒ HtmlParser
constructor
A new instance of HtmlParser.
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
#content ⇒ Object (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 |