Class: Mo2tex::Pic::Container
Instance Attribute Summary collapse
-
#day_schedule ⇒ Object
readonly
Returns the value of attribute day_schedule.
-
#slots ⇒ Object
readonly
Returns the value of attribute slots.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(n, ds, lt) ⇒ Container
constructor
A new instance of Container.
- #wdate ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(n, ds, lt) ⇒ Container
154 155 156 157 158 |
# File 'lib/mo2tex/pic.rb', line 154 def initialize(n, ds, lt) super(n, lt) @day_schedule = ds @slots = create_slots end |
Instance Attribute Details
#day_schedule ⇒ Object (readonly)
Returns the value of attribute day_schedule.
152 153 154 |
# File 'lib/mo2tex/pic.rb', line 152 def day_schedule @day_schedule end |
#slots ⇒ Object (readonly)
Returns the value of attribute slots.
152 153 154 |
# File 'lib/mo2tex/pic.rb', line 152 def slots @slots end |
Instance Method Details
#wdate ⇒ Object
160 161 162 163 |
# File 'lib/mo2tex/pic.rb', line 160 def wdate result = sprintf("%s %s", self.day_schedule.day.to_it_roff_wday, self.day_schedule.day.day_only.strftime("%d/%m")) return result end |