Sha256: a8cb0ecd4719867037ed70ec5ef4f828aba6804778a0095ef5024b5c98134b35

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

require 'nano/date/stamp'

class Date

  # Enhance #to_s by aliasing to #stamp.
  alias_method( :to_s, :stamp )

end # Date


#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
=begin test

  require 'test/unit'

  class TCDate < Test::Unit::TestCase

    def setup
      @d = Date.civil( 2005, 04, 20 )
    end

    def test_to_s
      assert_equal( "2005-04-20", @d.to_s )
    end

  end

=end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 lib/nano/date/to_s.rb