lib/uk_financial_year.rb in fyuk-0.3.0 vs lib/uk_financial_year.rb in fyuk-0.4.0

- old
+ new

@@ -4,12 +4,13 @@ class UkFinancialYear include Comparable # creates a new UkFinancialYear as the financial year which # includes the given date - # @param [Date] date the date to create a financial year for + # @param [Date] date the date to create a financial year for. + # If missing returns the current financial year # @return [UkFinancialYear] the financial year which covers the date - def initialize date + def initialize date=Date.today start_date = start_date date @range = start_date...start_date.next_year end # returns string representation of the financial year in the form '2000/01'. \ No newline at end of file