Class: DotDiff::ElementMeta
- Inherits:
-
Object
- Object
- DotDiff::ElementMeta
- Defined in:
- lib/dotdiff/element_meta.rb
Defined Under Namespace
Classes: Rectangle
Instance Attribute Summary collapse
-
#element_xpath ⇒ Object
readonly
Returns the value of attribute element_xpath.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(page, element) ⇒ ElementMeta
constructor
A new instance of ElementMeta.
- #rectangle ⇒ Object
Constructor Details
#initialize(page, element) ⇒ ElementMeta
Returns a new instance of ElementMeta.
5 6 7 8 |
# File 'lib/dotdiff/element_meta.rb', line 5 def initialize(page, element) @element_xpath = element.path @page = page end |
Instance Attribute Details
#element_xpath ⇒ Object (readonly)
Returns the value of attribute element_xpath.
3 4 5 |
# File 'lib/dotdiff/element_meta.rb', line 3 def element_xpath @element_xpath end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
3 4 5 |
# File 'lib/dotdiff/element_meta.rb', line 3 def page @page end |
Instance Method Details
#rectangle ⇒ Object
10 11 12 |
# File 'lib/dotdiff/element_meta.rb', line 10 def rectangle @rectangle ||= Rectangle.new(@page, @element_xpath) end |