Class: CureDateChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/cureutils/cure_date_checker.rb

Overview

Date class supports the precure format

Class Method Summary collapse

Class Method Details

.events(date) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/cureutils/cure_date_checker.rb', line 8

def events(date)
  create_hash
  event_list = [birth_date?(date),
                created_date?(date),
                movie_date?(date),
                series_between(date)].compact
  event_list.join('/')
end