lib/by_star/by_week.rb
# For reasoning why I use *args rather than variables here,
# please see the by_year method comments in lib/by_star/by_year.rb
For reasoning why I use *args rather than variables here,
please see the by_year method comments in lib/by_star/by_year.rb
For reasoning why I use * args rather than variables here please see the by_year method comments in lib / by_star / by_year . rb
def by_week(*args)
      options = args.extract_options!.symbolize_keys!
      time = args.first
      time ||= Time.new(options[:year], 1, 1).in_time_zone(Time.zone) if options[:year]
      time ||= Time.current
      send("by_week_#{time_klass(time)}", time, options)
    end
def by_week ( * args ) options = args . extract_options! . symbolize_keys! time = args . first time ||= Time . new ( options [ :year ] , 1 , 1 ) . in_time_zone ( Time . zone ) if options [ :year ] time ||= Time . current send ( "by_week_#{time_klass(time)}" , time , options ) end
For reasoning why I use *args rather than variables here,
please see the by_year method comments in lib/by_star/by_year.rb
For reasoning why I use * args rather than variables here please see the by_year method comments in lib / by_star / by_year . rb
args
<not_specific>