Class: Mo2tex::SlotBase
- Inherits:
-
Object
- Object
- Mo2tex::SlotBase
- Includes:
- DateTimeHelper
- Defined in:
- lib/mo2tex/day_schedule.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#day ⇒ Object
readonly
Returns the value of attribute day.
-
#dtend ⇒ Object
Returns the value of attribute dtend.
-
#dtstart ⇒ Object
Returns the value of attribute dtstart.
Instance Method Summary collapse
- #color ⇒ Object
-
#initialize(day, ts, te) ⇒ SlotBase
constructor
A new instance of SlotBase.
- #title ⇒ Object
Methods included from DateTimeHelper
Constructor Details
#initialize(day, ts, te) ⇒ SlotBase
Returns a new instance of SlotBase.
12 13 14 15 16 |
# File 'lib/mo2tex/day_schedule.rb', line 12 def initialize(day, ts, te) @day = day self.dtstart = ts self.dtend = te end |
Instance Attribute Details
#day ⇒ Object (readonly)
Returns the value of attribute day.
9 10 11 |
# File 'lib/mo2tex/day_schedule.rb', line 9 def day @day end |
#dtend ⇒ Object
Returns the value of attribute dtend.
10 11 12 |
# File 'lib/mo2tex/day_schedule.rb', line 10 def dtend @dtend end |
#dtstart ⇒ Object
Returns the value of attribute dtstart.
10 11 12 |
# File 'lib/mo2tex/day_schedule.rb', line 10 def dtstart @dtstart end |
Instance Method Details
#color ⇒ Object
26 27 28 |
# File 'lib/mo2tex/day_schedule.rb', line 26 def color raise PureVirtualMethodCalled, "#{self.class}#color" end |
#title ⇒ Object
30 31 32 |
# File 'lib/mo2tex/day_schedule.rb', line 30 def title raise PureVirtualMethodCalled, "#{self.class}#title" end |