class Date
Public Instance Methods
circa()
click to toggle source
# File lib/incomplete_date/date.rb, line 2 def circa false end
Also aliased as: circa?
matches?(incomplete_date)
click to toggle source
# File lib/incomplete_date/date.rb, line 19 def matches?(incomplete_date) incomplete_date.include?(self) end
to_birthday()
click to toggle source
# File lib/incomplete_date/date.rb, line 7 def to_birthday IncompleteDate.new(:month => month, :day => day) end
to_i()
click to toggle source
# File lib/incomplete_date/date.rb, line 11 def to_i year*10000 + month*100 + day end
to_incomplete_date()
click to toggle source
# File lib/incomplete_date/date.rb, line 15 def to_incomplete_date IncompleteDate.new(self) end