README.textile in partial-date-1.1.1 vs README.textile in partial-date-1.1.2

- old
+ new

@@ -8,11 +8,11 @@ A simple date class that can be used to store partial date values in a single column/attribute. An example use case would include an archive, or catalogue entry where the complete date is unknown. Year is mandatory, but month and day are optional. h2. Features -PartialDate::Date uses a 23bit register as the backing store for date instances, and bit fiddling to get or set year, month and day values. As such it will perform well in a loop or collection of date objects. +PartialDate::Date uses a 23 bit register as the backing store for date instances, and bit fiddling to get or set year, month and day values. As such it will perform well in a loop or collection of date objects. Use @date.value@ to get or set an Integer value that can be used to rehydrate a date object, or save the date value to a persistance store in a readable Integer form e.g. 20121201 for 2012 December 01. h2. Examples @@ -23,16 +23,16 @@ # => date.value # => 0 # Initialize from a block of integers -date = PartialDate::Date.new {|d| d.year = 2012, d.month = 01} +date = PartialDate::Date.new {|d| d.year = 2012; d.month = 01} # => 2012-01 date.value # => 20120100 # Initialize from a block of strings -date = PartialDate::Date.new {|d| d.year = "2012", d.month = "01"} +date = PartialDate::Date.new {|d| d.year = "2012"; d.month = "01"} # => 2012-01 date.value # => 20120100 # Initialize from the class load method - for rehydrating a date instance from a stored integer date value.