Module: PageMagic::Element::Selector::Methods
- 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
10 11 12 13 14 |
# File 'lib/page_magic/element/selector/methods.rb', line 10 def selector(selector = nil) return @selector unless selector @selector = selector end |