Module: OSU::Semester
- Defined in:
- lib/osu_term.rb
Overview
Logic for OSU semesters
Constant Summary collapse
- SEASONS =
Spring, Summer, Autumn
/(2|4|8)$/
Instance Method Summary collapse
- #abbr_type ⇒ Object
- #quarter? ⇒ Boolean
- #semester? ⇒ Boolean
- #transition_semester? ⇒ Boolean
- #type ⇒ Object
Instance Method Details
#abbr_type ⇒ Object
228 229 230 |
# File 'lib/osu_term.rb', line 228 def abbr_type strm[-1] == SUMMER ? 'Trm' : 'Sem' end |
#quarter? ⇒ Boolean
232 233 234 |
# File 'lib/osu_term.rb', line 232 def quarter? false end |
#semester? ⇒ Boolean
236 237 238 |
# File 'lib/osu_term.rb', line 236 def semester? true end |
#transition_semester? ⇒ Boolean
240 241 242 |
# File 'lib/osu_term.rb', line 240 def transition_semester? false end |
#type ⇒ Object
224 225 226 |
# File 'lib/osu_term.rb', line 224 def type strm[-1] == SUMMER ? 'Term' : 'Semester' end |