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
Returns a new instance of Container.
143 144 145 146 147 |
# File 'lib/mo2tex/pic.rb', line 143 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.
141 142 143 |
# File 'lib/mo2tex/pic.rb', line 141 def day_schedule @day_schedule end |
#slots ⇒ Object (readonly)
Returns the value of attribute slots.
141 142 143 |
# File 'lib/mo2tex/pic.rb', line 141 def slots @slots end |
Instance Method Details
#wdate ⇒ Object
149 150 151 152 |
# File 'lib/mo2tex/pic.rb', line 149 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 |