class Eye::Checker::Measure

Public Instance Methods

good?(value) click to toggle source
# File lib/eye/checker.rb, line 256
def good?(value)
  return false if below && (value > below)
  return false if above && (value < above)
  true
end
measure_str() click to toggle source
# File lib/eye/checker.rb, line 262
def measure_str
  if below && above
    ">#{human_value(above)}<#{human_value(below)}"
  elsif below
    "<#{human_value(below)}"
  elsif above
    ">#{human_value(above)}"
  else
    '-'
  end
end