Class: Railbow::Calendar::Furniture

Inherits:
Object
  • Object
show all
Defined in:
lib/railbow/calendar.rb

Overview

What the renderer needs to draw the calendar: a label per separator row, and which rows open a week (for tick marks). Both keyed by row index.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFurniture

Returns a new instance of Furniture.



24
25
26
27
# File 'lib/railbow/calendar.rb', line 24

def initialize
  @separators = {}
  @tick_rows = Set.new
end

Instance Attribute Details

#separatorsObject (readonly)

Returns the value of attribute separators.



22
23
24
# File 'lib/railbow/calendar.rb', line 22

def separators
  @separators
end

#tick_rowsObject (readonly)

Returns the value of attribute tick_rows.



22
23
24
# File 'lib/railbow/calendar.rb', line 22

def tick_rows
  @tick_rows
end