Class: Mo2tex::Pic::Container

Inherits:
Base
  • Object
show all
Defined in:
lib/mo2tex/pic.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#loc, #number

Instance Method Summary collapse

Methods inherited from Base

#location_tag

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_scheduleObject (readonly)

Returns the value of attribute day_schedule.



141
142
143
# File 'lib/mo2tex/pic.rb', line 141

def day_schedule
  @day_schedule
end

#slotsObject (readonly)

Returns the value of attribute slots.



141
142
143
# File 'lib/mo2tex/pic.rb', line 141

def slots
  @slots
end

Instance Method Details

#wdateObject



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