class SuperDiff::ObjectInspection::Nodes::WhenRenderingToString
Public Class Methods
method_name()
click to toggle source
# File lib/super_diff/object_inspection/nodes/when_rendering_to_string.rb, line 9 def self.method_name :when_rendering_to_string end
node_name()
click to toggle source
# File lib/super_diff/object_inspection/nodes/when_rendering_to_string.rb, line 5 def self.node_name :when_rendering_to_string end
Public Instance Methods
render_to_lines(*, **)
click to toggle source
# File lib/super_diff/object_inspection/nodes/when_rendering_to_string.rb, line 21 def render_to_lines(*, **) [] end
render_to_string(object)
click to toggle source
# File lib/super_diff/object_inspection/nodes/when_rendering_to_string.rb, line 13 def render_to_string(object) if block render_to_string_in_subtree(object) else immediate_value.to_s end end