class SuperDiff::OperationTreeBuilders::TimeLike
Public Class Methods
applies_to?(expected, actual)
click to toggle source
# File lib/super_diff/operation_tree_builders/time_like.rb, line 4 def self.applies_to?(expected, actual) SuperDiff.time_like?(expected) && SuperDiff.time_like?(actual) end
Protected Instance Methods
attribute_names()
click to toggle source
# File lib/super_diff/operation_tree_builders/time_like.rb, line 10 def attribute_names base = [ "year", "month", "day", "hour", "min", "sec", "subsec", "zone", "utc_offset", ] # If timezones are different, also show a normalized timestamp at the # end of the diff to help visualize why they are different moments in # time. if actual.zone != expected.zone base + ["utc"] else base end end