Class: Railbow::Calendar::Furniture
- Inherits:
-
Object
- Object
- Railbow::Calendar::Furniture
- 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
-
#separators ⇒ Object
readonly
Returns the value of attribute separators.
-
#tick_rows ⇒ Object
readonly
Returns the value of attribute tick_rows.
Instance Method Summary collapse
-
#initialize ⇒ Furniture
constructor
A new instance of Furniture.
Constructor Details
#initialize ⇒ Furniture
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
#separators ⇒ Object (readonly)
Returns the value of attribute separators.
22 23 24 |
# File 'lib/railbow/calendar.rb', line 22 def separators @separators end |
#tick_rows ⇒ Object (readonly)
Returns the value of attribute tick_rows.
22 23 24 |
# File 'lib/railbow/calendar.rb', line 22 def tick_rows @tick_rows end |