Class: Lilu::Replacing

Inherits:
Object
  • Object
show all
Defined in:
lib/lilu.rb

Overview

Experimental stuff

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#elementObject (readonly)

Returns the value of attribute element.



156
157
158
# File 'lib/lilu.rb', line 156

def element
  @element
end