Exception: SuperDiff::Core::NoInspectionTreeBuilderAvailableError
- Inherits:
-
StandardError
- Object
- StandardError
- SuperDiff::Core::NoInspectionTreeBuilderAvailableError
- Defined in:
- lib/super_diff/core/no_inspection_tree_builder_available_error.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
Returns the value of attribute object.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ NoInspectionTreeBuilderAvailableError
constructor
A new instance of NoInspectionTreeBuilderAvailableError.
Constructor Details
#initialize ⇒ NoInspectionTreeBuilderAvailableError
Returns a new instance of NoInspectionTreeBuilderAvailableError.
15 16 17 18 19 20 |
# File 'lib/super_diff/core/no_inspection_tree_builder_available_error.rb', line 15 def initialize super(<<~MESSAGE) There is no inspection tree builder available to handle a "value" of type #{object.class}. MESSAGE end |
Instance Attribute Details
#object ⇒ Object
Returns the value of attribute object.
13 14 15 |
# File 'lib/super_diff/core/no_inspection_tree_builder_available_error.rb', line 13 def object @object end |
Class Method Details
.create(object) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/super_diff/core/no_inspection_tree_builder_available_error.rb', line 6 def self.create(object) allocate.tap do |error| error.object = object error.__send__(:initialize) end end |