Class: Pricecut::Elements::A
- Defined in:
- lib/pricecut/elements/a.rb
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Element
#append_newline, #append_output, #initialize, #yield_children
Constructor Details
This class inherits a constructor from Pricecut::Elements::Element
Instance Method Details
#output! ⇒ Object
4 5 6 7 8 9 |
# File 'lib/pricecut/elements/a.rb', line 4 def output! text = node.text href = node["href"] p "[#{ text }](#{ href })" end |