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.
17 18 19 20 |
# File 'lib/capybara/poltergeist/errors.rb', line 17 def initialize(, stack) @message = @stack = stack end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
15 16 17 |
# File 'lib/capybara/poltergeist/errors.rb', line 15 def @message end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
15 16 17 |
# File 'lib/capybara/poltergeist/errors.rb', line 15 def stack @stack end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/capybara/poltergeist/errors.rb', line 22 def to_s [, stack].join("\n") end |