Class: Jasmine::Page
- Inherits:
-
Object
- Object
- Jasmine::Page
- Defined in:
- lib/jasmine/page.rb
Instance Method Summary collapse
-
#initialize(context) ⇒ Page
constructor
A new instance of Page.
- #render ⇒ Object
Constructor Details
#initialize(context) ⇒ Page
Returns a new instance of Page.
3 4 5 |
# File 'lib/jasmine/page.rb', line 3 def initialize(context) @context = context end |
Instance Method Details
#render ⇒ Object
7 8 9 |
# File 'lib/jasmine/page.rb', line 7 def render ERB.new(::Jasmine.runner_template).result(@context.instance_eval { binding }) end |