class SuperDiff::OperationTreeFlatteners::CustomObject
Protected Instance Methods
close_token()
click to toggle source
# File lib/super_diff/operation_tree_flatteners/custom_object.rb, line 10 def close_token "}>" end
item_prefix_for(operation)
click to toggle source
# File lib/super_diff/operation_tree_flatteners/custom_object.rb, line 14 def item_prefix_for(operation) key = # Note: We could have used the right_key here too, they're both the # same keys if operation.respond_to?(:left_key) operation.left_key else operation.key end "#{key}: " end
open_token()
click to toggle source
# File lib/super_diff/operation_tree_flatteners/custom_object.rb, line 6 def open_token "#<%<class>s {" % { class: operation_tree.underlying_object.class } end