Class: Webr::Jasmine::Browser
- Defined in:
- lib/webr/jasmine/browser.rb
Instance Attribute Summary
Attributes inherited from Browser
Instance Method Summary collapse
-
#initialize(format) ⇒ Browser
constructor
A new instance of Browser.
- #start ⇒ Object
Methods inherited from Browser
#html, #html=, #open, #root, #root=
Constructor Details
#initialize(format) ⇒ Browser
Returns a new instance of Browser.
3 4 5 6 7 |
# File 'lib/webr/jasmine/browser.rb', line 3 def initialize(format) super() @scripts << "#{Webr::HOME_PATH}/ext/jasmine/lib/jasmine.js" @env["WebrReporter"] = Reporter[format] end |
Instance Method Details
#start ⇒ Object
9 10 11 12 |
# File 'lib/webr/jasmine/browser.rb', line 9 def start @scripts << "#{Webr::HOME_PATH}/js/jasmine-start.js" super end |