class SuperDiff::OperationTrees::DefaultObject
Attributes
underlying_object[R]
Public Class Methods
applies_to?(*)
click to toggle source
# File lib/super_diff/operation_trees/default_object.rb, line 4 def self.applies_to?(*) true end
new(operations, underlying_object:)
click to toggle source
Calls superclass method
SuperDiff::OperationTrees::Base::new
# File lib/super_diff/operation_trees/default_object.rb, line 10 def initialize(operations, underlying_object:) super(operations) @underlying_object = underlying_object end
Public Instance Methods
pretty_print(pp)
click to toggle source
# File lib/super_diff/operation_trees/default_object.rb, line 15 def pretty_print(pp) pp.text "#<#{self.class.name} " pp.nest(1) do pp.breakable pp.text ":operations=>" pp.group(1, "[", "]") do pp.breakable pp.seplist(self) do |value| pp.pp value end end pp.comma_breakable pp.text ":underlying_object=>" pp.object_address_group underlying_object do # do nothing end end pp.text ">" end
Protected Instance Methods
operation_tree_flattener_class()
click to toggle source
# File lib/super_diff/operation_trees/default_object.rb, line 37 def operation_tree_flattener_class OperationTreeFlatteners::DefaultObject end