Method: Apoptosis::Apoptosis#old?

Defined in:
lib/apoptosis/apoptosis.rb

#old?(line) ⇒ Boolean

Old is defined as a year for now, just for fun Should probably make it command line configurable

Returns:

  • (Boolean)


28
29
30
31
# File 'lib/apoptosis/apoptosis.rb', line 28

def old?(line)
  today = Date.today()
  return (today.year > line.year) && (today.month >= line.month)
end