lib/fat_period/period.rb
# Return whether this Period contains the given date.
#
# @param date [Date] date to test
# @return [Boolean] is the given date within this Period?
Return whether this Period contains the given date.
Return whether this Period contains the given date .
def contains?(date)
    date = date.to_date if date.respond_to?(:to_date)
    raise ArgumentError, 'argument must be a Date' unless date.is_a?(Date)
    to_range.cover?(date)
  end
def contains? ( date ) date = date . to_date if date . respond_to? ( :to_date ) raise ArgumentError , 'argument must be a Date' unless date . is_a? ( Date ) to_range . cover? ( date ) end
Return whether this Period contains the given date.
Return whether this Period contains the given date .
None
Boolean
date
date to test
date to test