Module: Mo2tex
- Extended by:
- CommonParts
- Defined in:
- lib/mo2tex.rb,
lib/mo2tex/pic.rb,
lib/mo2tex/main.rb,
lib/mo2tex/event.rb,
lib/mo2tex/latex.rb,
lib/mo2tex/course.rb,
lib/mo2tex/school.rb,
lib/mo2tex/version.rb,
lib/mo2tex/calendar.rb,
lib/mo2tex/exceptions.rb,
lib/mo2tex/day_schedule.rb,
lib/mo2tex/exclude_date.rb,
lib/mo2tex/course_helper.rb,
lib/mo2tex/datetime_helper.rb,
lib/mo2tex/exclusion_manager.rb
Defined Under Namespace
Modules: CommonParts, CourseHelper, DateTimeHelper, Pic Classes: Calendar, CollectiveCourse, Course, DateOutOfRange, DayIsNotDateTime, DaySchedule, Error, Event, EventsNotGenerated, ExcludeBase, ExcludeDate, ExcludeDates, ExclusionManager, FreeSlot, GenerationError, IndividualCourse, Latex, LunchBreak, NotAPicContainer, NotEnoughLessons, PureVirtuaMethodCalled, School, SlotBase, TimeIsNotString, UnexistentWeekDay, UnknownCourse, UnknownCourseFrequency, UnknownCourseType, UnknownRepetition, WrongWeekDay
Constant Summary collapse
- PATH =
'mo2tex'
- EXT_PATH =
File.join(PATH, 'extensions')
- DEFAULT_LTDIR =
File.(File.join(['..']*3, 'config', 'templates', 'latex'), __FILE__)
- VERSION =
"1.0.3"
Class Method Summary collapse
-
.m2ical(args, io = STDOUT) ⇒ Object
m2ical
: produces an iCal file from a configuration. -
.m2latex(args, io = STDOUT) ⇒ Object
m2latex
: produces a LaTeX file from a configuration. -
.m2pic(args, io = STDOUT) ⇒ Object
m2pic
: produces a pic file from a configuration.
Methods included from CommonParts
Class Method Details
.m2ical(args, io = STDOUT) ⇒ Object
m2ical
: produces an iCal file from a configuration
38 39 40 41 42 43 44 45 |
# File 'lib/mo2tex/main.rb', line 38 def m2ical(args, io = STDOUT) ical = m2common(args, io) do |school| ical = school.cal.create_icalendar(school) return ical.to_ical end return ical end |