class SuperDiff::ObjectInspection::InspectionTree::DisallowedNodeError
Attributes
node_name[RW]
Public Class Methods
create(node_name:)
click to toggle source
# 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
new(_message = nil)
click to toggle source
Calls superclass method
# File lib/super_diff/object_inspection/inspection_tree.rb, line 244 def initialize(_message = nil) super("#{node_name} is not allowed to be used here!") end