Exception: SuperDiff::ObjectInspection::InspectionTree::DisallowedNodeError
- Inherits:
-
StandardError
- Object
- StandardError
- SuperDiff::ObjectInspection::InspectionTree::DisallowedNodeError
- Defined in:
- lib/super_diff/object_inspection/inspection_tree.rb
Instance Attribute Summary collapse
-
#node_name ⇒ Object
Returns the value of attribute node_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(_message = nil) ⇒ DisallowedNodeError
constructor
A new instance of DisallowedNodeError.
Constructor Details
#initialize(_message = nil) ⇒ DisallowedNodeError
Returns a new instance of DisallowedNodeError.
244 245 246 |
# File 'lib/super_diff/object_inspection/inspection_tree.rb', line 244 def initialize( = nil) super("#{node_name} is not allowed to be used here!") end |
Instance Attribute Details
#node_name ⇒ Object
Returns the value of attribute node_name.
242 243 244 |
# File 'lib/super_diff/object_inspection/inspection_tree.rb', line 242 def node_name @node_name end |
Class Method Details
.create(node_name:) ⇒ Object
235 236 237 238 239 240 |
# File 'lib/super_diff/object_inspection/inspection_tree.rb', line 235 def self.create(node_name:) allocate.tap do |error| error.node_name = node_name error.__send__(:initialize) end end |