Class: Ea::Svg::Parity::Checker::Diff

Inherits:
Struct
  • Object
show all
Defined in:
lib/ea/svg/parity/checker.rb

Instance Method Summary collapse

Instance Method Details

#deltaObject



78
79
80
# File 'lib/ea/svg/parity/checker.rb', line 78

def delta
  ours - reference
end

#within?(tolerance) ⇒ Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/ea/svg/parity/checker.rb', line 82

def within?(tolerance)
  delta.abs <= tolerance
end