Class: Statefully::Diff::Failed
- Inherits:
-
Statefully::Diff
- Object
- Statefully::Diff
- Statefully::Diff::Failed
- Defined in:
- lib/statefully/diff.rb
Overview
Instance Attribute Summary collapse
-
#error ⇒ StandardError
readonly
Error that caused the State to fail.
Instance Method Summary collapse
-
#initialize(error) ⇒ Failed
constructor
Constructor for Failed.
-
#inspect ⇒ String
Human-readable representation of the Failed.
Methods inherited from Statefully::Diff
#added, #added?, #changed, #changed?, create, #empty?
Constructor Details
#initialize(error) ⇒ Failed
Constructor for Statefully::Diff::Failed
251 252 253 |
# File 'lib/statefully/diff.rb', line 251 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ StandardError (readonly)
Error that caused the State to fail
242 243 244 |
# File 'lib/statefully/diff.rb', line 242 def error @error end |
Instance Method Details
#inspect ⇒ String
Human-readable representation of the Statefully::Diff::Failed
262 263 264 |
# File 'lib/statefully/diff.rb', line 262 def inspect "#<#{self.class.name} error=#{error.inspect}>" end |