Class: Lilu::Replacing
- Inherits:
-
Object
- Object
- Lilu::Replacing
- Defined in:
- lib/lilu.rb
Overview
Experimental stuff
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
Instance Method Summary collapse
-
#initialize(renderer, element) ⇒ Replacing
constructor
A new instance of Replacing.
Constructor Details
#initialize(renderer, element) ⇒ Replacing
Returns a new instance of Replacing.
157 158 159 160 161 162 163 164 165 |
# File 'lib/lilu.rb', line 157 def initialize(renderer,element) @renderer = renderer case element when String @element = renderer.element_at(element) when Hpricot::Elem, Hpricot::Elements @element = element end end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
156 157 158 |
# File 'lib/lilu.rb', line 156 def element @element end |