Class: SuperDiff::ObjectInspection::Nodes::Text
- Defined in:
- lib/super_diff/object_inspection/nodes/text.rb
Instance Method Summary collapse
Methods inherited from Base
#clone_with, #initialize, #pretty_print, #type
Constructor Details
This class inherits a constructor from SuperDiff::ObjectInspection::Nodes::Base
Instance Method Details
#evaluate(object) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/super_diff/object_inspection/nodes/text.rb', line 5 def evaluate(object, **) if block tree.evaluate_block(object, &block).to_s else immediate_value.to_s end end |