Class: Lilu::ElementAt

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(renderer, path) ⇒ ElementAt

Returns a new instance of ElementAt.



138
139
140
# File 'lib/lilu.rb', line 138

def initialize(renderer,path)
  @renderer, @path = @renderer, path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



137
138
139
# File 'lib/lilu.rb', line 137

def path
  @path
end

Instance Method Details

#find_at(element) ⇒ Object



141
142
143
# File 'lib/lilu.rb', line 141

def find_at(element)
  element.at(path)
end