Class: PlainDavid::Strategies::PlainStrategy
- Inherits:
-
Object
- Object
- PlainDavid::Strategies::PlainStrategy
- Defined in:
- lib/plain_david/strategies/plain_strategy.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
Returns the value of attribute html.
Instance Method Summary collapse
- #convert! ⇒ Object
-
#initialize(html) ⇒ PlainStrategy
constructor
A new instance of PlainStrategy.
Constructor Details
#initialize(html) ⇒ PlainStrategy
Returns a new instance of PlainStrategy.
12 13 14 |
# File 'lib/plain_david/strategies/plain_strategy.rb', line 12 def initialize(html) @html = html end |
Instance Attribute Details
#html ⇒ Object
Returns the value of attribute html.
10 11 12 |
# File 'lib/plain_david/strategies/plain_strategy.rb', line 10 def html @html end |
Instance Method Details
#convert! ⇒ Object
16 17 18 |
# File 'lib/plain_david/strategies/plain_strategy.rb', line 16 def convert! convert_to_text(html) end |