Sha256: 8fda49fc079067cdd418e437c55cefe3db1afd3c14f1bf03bb4e0137d12a84ed

Contents?: true

Size: 206 Bytes

Versions: 1

Compression:

Stored size: 206 Bytes

Contents

module Clock
  
  class Timepiece
    attr_accessor :datetime

    def initialize(datetime)
      @datetime = datetime.to_time
    end

    def day_of_week
      @datetime.strftime('%A')
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hublot-0.0.1 lib/clock/timepiece.rb