Class: Capybara::Poltergeist::JSErrorItem
- Inherits:
-
Object
- Object
- Capybara::Poltergeist::JSErrorItem
- Defined in:
- lib/capybara/poltergeist/errors.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize(message, stack) ⇒ JSErrorItem
constructor
A new instance of JSErrorItem.
- #to_s ⇒ Object
Constructor Details
#initialize(message, stack) ⇒ JSErrorItem
Returns a new instance of JSErrorItem.
19 20 21 22 |
# File 'lib/capybara/poltergeist/errors.rb', line 19 def initialize(, stack) @message = @stack = stack end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
17 18 19 |
# File 'lib/capybara/poltergeist/errors.rb', line 17 def @message end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
17 18 19 |
# File 'lib/capybara/poltergeist/errors.rb', line 17 def stack @stack end |
Instance Method Details
#to_s ⇒ Object
24 25 26 |
# File 'lib/capybara/poltergeist/errors.rb', line 24 def to_s [, stack].join("\n") end |