Sha256: 04ca6ac295169d1666a8b59c36c0c7c5b5412e368ddfce769dfaba0dbc1e349a

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

module Mustang
  module V8
    class Date
      include Comparable
      include Delegated

      def to_time
        Time.at(to_i);
      end
      
      def <=>(other)
        to_time <=> other
      end

      def delegate
        to_time
      end
    end # Date
  end # V8
end # Mustang

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mustang-0.2.1 lib/mustang/v8/date.rb
mustang-0.2.0 lib/mustang/v8/date.rb