Class: Telegraph::Parser::Parser
- Inherits:
-
Object
- Object
- Telegraph::Parser::Parser
- Defined in:
- lib/telegraph/parser/parser.rb
Instance Attribute Summary collapse
-
#article ⇒ Object
Returns the value of attribute article.
-
#bindings ⇒ Object
Returns the value of attribute bindings.
-
#image_prefix ⇒ Object
Returns the value of attribute image_prefix.
-
#page ⇒ Object
writeonly
Sets the attribute page.
Instance Method Summary collapse
-
#initialize(binding, image_prefix) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(binding, image_prefix) ⇒ Parser
Returns a new instance of Parser.
8 9 10 11 12 |
# File 'lib/telegraph/parser/parser.rb', line 8 def initialize(binding, image_prefix) self.bindings = binding self.image_prefix = image_prefix parse_html end |
Instance Attribute Details
#article ⇒ Object
Returns the value of attribute article.
6 7 8 |
# File 'lib/telegraph/parser/parser.rb', line 6 def article @article end |
#bindings ⇒ Object
Returns the value of attribute bindings.
6 7 8 |
# File 'lib/telegraph/parser/parser.rb', line 6 def bindings @bindings end |
#image_prefix ⇒ Object
Returns the value of attribute image_prefix.
6 7 8 |
# File 'lib/telegraph/parser/parser.rb', line 6 def image_prefix @image_prefix end |
#page=(value) ⇒ Object
Sets the attribute page
6 7 8 |
# File 'lib/telegraph/parser/parser.rb', line 6 def page=(value) @page = value end |