Class: TerminalCalendar::Month::NullDay

Inherits:
CalendarDay show all
Defined in:
lib/terminal_calendar/month/calendar_day.rb

Instance Attribute Summary

Attributes inherited from CalendarDay

#date, #pastel

Instance Method Summary collapse

Methods inherited from CalendarDay

#day, #today?

Constructor Details

#initializeNullDay

Returns a new instance of NullDay.



52
53
54
# File 'lib/terminal_calendar/month/calendar_day.rb', line 52

def initialize
  super(nil)
end

Instance Method Details

#null?true

Returns whether the object is null or not.

Returns:

  • (true)

    Returns true.



64
65
66
# File 'lib/terminal_calendar/month/calendar_day.rb', line 64

def null?
  true
end

#renderObject Also known as: to_s



56
57
58
# File 'lib/terminal_calendar/month/calendar_day.rb', line 56

def render
  '  '
end