Class: Undead::JSErrorItem
- Inherits:
-
Object
- Object
- Undead::JSErrorItem
- Defined in:
- lib/undead/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.
16 17 18 19 |
# File 'lib/undead/errors.rb', line 16 def initialize(, stack) @message = @stack = stack end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
14 15 16 |
# File 'lib/undead/errors.rb', line 14 def @message end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
14 15 16 |
# File 'lib/undead/errors.rb', line 14 def stack @stack end |
Instance Method Details
#to_s ⇒ Object
21 22 23 |
# File 'lib/undead/errors.rb', line 21 def to_s [, stack].join("\n") end |