Sha256: fe977fc7f5a8602568ca8bf28e9777df4981afdb4f69e67f45d721d7aea3d3c5
Contents?: true
Size: 265 Bytes
Versions: 6
Compression:
Stored size: 265 Bytes
Contents
module Cal class Month def initialize(calendar) @calendar = calendar end attr_reader :calendar def ==(other) other.is_a?(Month) && other.calendar == calendar end def to_s calendar.date.strftime "%B" end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
cal-0.4.1 | lib/cal/month.rb |
cal-0.4.0 | lib/cal/month.rb |
cal-0.3.0 | lib/cal/month.rb |
cal-0.2.1 | lib/cal/month.rb |
cal-0.2.0 | lib/cal/month.rb |
cal-0.1.0 | lib/cal/month.rb |