Method: Webrat::Session#within
- Defined in:
- lib/webrat/core/session.rb
#within(selector) ⇒ Object
204 205 206 207 208 209 |
# File 'lib/webrat/core/session.rb', line 204 def within(selector) scopes.push(Scope.from_scope(self, current_scope, selector)) ret = yield(current_scope) scopes.pop return ret end |