Module: PageMagic::Element::SelectorMethods
- Included in:
- PageMagic::Element, PageMagic::Element
- Defined in:
- lib/page_magic/element/selector_methods.rb
Overview
module SelectorMethods - adds method for getting and setting an element selector
Instance Method Summary collapse
-
#selector(selector = nil) ⇒ Object
Gets/Sets a selector.
Instance Method Details
#selector(selector = nil) ⇒ Object
Gets/Sets a selector
7 8 9 10 |
# File 'lib/page_magic/element/selector_methods.rb', line 7 def selector(selector = nil) return @selector unless selector @selector = selector end |