class SuperDiff::ObjectInspection::Nodes::Text
Public Class Methods
method_name()
click to toggle source
# File lib/super_diff/object_inspection/nodes/text.rb, line 9 def self.method_name :add_text end
node_name()
click to toggle source
# File lib/super_diff/object_inspection/nodes/text.rb, line 5 def self.node_name :text end
Public Instance Methods
render_to_lines(object, **)
click to toggle source
# File lib/super_diff/object_inspection/nodes/text.rb, line 21 def render_to_lines(object, **) # NOTE: This is a bit of a hack since it returns a string instead of a # Line, but it is handled in InspectionTree (see UpdateTieredLines) render_to_string(object) end
render_to_string(object)
click to toggle source
# File lib/super_diff/object_inspection/nodes/text.rb, line 13 def render_to_string(object) if block evaluate_block(object).to_s else immediate_value.to_s end end