Exception: SuperDiff::Core::NoInspectionTreeBuilderAvailableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/super_diff/core/no_inspection_tree_builder_available_error.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNoInspectionTreeBuilderAvailableError

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

#objectObject

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