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.



161
162
163
164
165
166
167
168
169
# File 'lib/lilu.rb', line 161

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.



160
161
162
# File 'lib/lilu.rb', line 160

def element
  @element
end