Class: Page
- Inherits:
-
Object
- Object
- Page
- Defined in:
- lib/acceptance_test/page.rb
Instance Attribute Summary collapse
-
#page_set ⇒ Object
readonly
Returns the value of attribute page_set.
Instance Method Summary collapse
-
#initialize(page_set) ⇒ Page
constructor
A new instance of Page.
- #session ⇒ Object
- #with_session(&code) ⇒ Object
Constructor Details
#initialize(page_set) ⇒ Page
Returns a new instance of Page.
5 6 7 |
# File 'lib/acceptance_test/page.rb', line 5 def initialize page_set @page_set = page_set end |
Instance Attribute Details
#page_set ⇒ Object (readonly)
Returns the value of attribute page_set.
3 4 5 |
# File 'lib/acceptance_test/page.rb', line 3 def page_set @page_set end |
Instance Method Details
#session ⇒ Object
9 10 11 |
# File 'lib/acceptance_test/page.rb', line 9 def session page_set.session end |
#with_session(&code) ⇒ Object
13 14 15 |
# File 'lib/acceptance_test/page.rb', line 13 def with_session &code session.instance_eval &code end |