Sha256: 7a70c7e8c297b310c99f2dd11b22ef07c4b2853477be0aa8d079617590e07233

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

class SiteHub
  module Logging
    class LogEntry
      attr_reader :message, :time
      def initialize message, time=Time.now
        @message, @time = message, time
      end

      def == other
        other.is_a?(LogEntry) && self.message == other.message && self.time == other.time
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sitehub-0.4.2 lib/sitehub/logging/log_entry.rb
sitehub-0.4.1 lib/sitehub/logging/log_entry.rb