lib/timeboss/calendar.rb in timeboss-0.0.7 vs lib/timeboss/calendar.rb in timeboss-0.0.8
- old
+ new
@@ -9,9 +9,17 @@
module TimeBoss
class Calendar
include Waypoints
delegate :parse, to: :parser
+ def name
+ self.class.to_s.demodulize.underscore
+ end
+
+ def title
+ name.titleize
+ end
+
protected
attr_reader :basis
def initialize(basis:)