class PPCurses::MetaMonth

A container object that holds:

This container is used for displaying dates in the datepicker. The row and column position are necessary so that the day selected can be highlighted.

Attributes

day[RW]
day_pos[RW]
month_str_array[RW]

Public Class Methods

new(day=Date.today) click to toggle source
# File lib/ppcurses/date/meta_month.rb, line 119
def initialize(day=Date.today)    
  self.day = day    
end

Public Instance Methods

day=(new_day) click to toggle source
# File lib/ppcurses/date/meta_month.rb, line 123
def day=(new_day)
  @day = new_day 
  @month_str_array, @day_pos = pict(@day)
end
day_col() click to toggle source
# File lib/ppcurses/date/meta_month.rb, line 132
def day_col
  @day_pos[ @day.day ][1]
end
day_row() click to toggle source
# File lib/ppcurses/date/meta_month.rb, line 128
def day_row
  @day_pos[ @day.day ][0]
end