Class: Ogpr::Parser
- Inherits:
-
Object
- Object
- Ogpr::Parser
- Defined in:
- lib/ogpr/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(html) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(html) ⇒ Parser
Returns a new instance of Parser.
14 15 16 |
# File 'lib/ogpr/parser.rb', line 14 def initialize(html) @html = html end |
Class Method Details
.parse(str) ⇒ Object
9 10 11 |
# File 'lib/ogpr/parser.rb', line 9 def parse(str) new(str).parse end |