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



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

Returns the value of attribute day_schedule.



152
153
154
# File 'lib/mo2tex/pic.rb', line 152

def day_schedule
  @day_schedule
end

#slotsObject (readonly)

Returns the value of attribute slots.



152
153
154
# File 'lib/mo2tex/pic.rb', line 152

def slots
  @slots
end

Instance Method Details

#wdateObject



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