Class: Jasmine::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/page.rb

Instance Method Summary collapse

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

#renderObject



7
8
9
# File 'lib/jasmine/page.rb', line 7

def render
  ERB.new(::Jasmine.runner_template).result(@context.instance_eval { binding })
end