Skip to content
Browse files

change default footer to false

  • Loading branch information...
1 parent da7d6b9 commit 9af008a5785170cfdc38672c832823bb493180f3 @melborne committed Dec 17, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/month.rb
View
6 lib/month.rb
@@ -29,7 +29,7 @@ def dates_by_block(from=0)
end
alias formaty format
- def format(style=:block, from=0, color=false, footer=true)
+ def format(style=:block, from=0, color=false, footer=false)
formatter = color ? color_proc : mono_proc
body =
case style
@@ -38,7 +38,7 @@ def format(style=:block, from=0, color=false, footer=true)
dates_by_block(from).map { |aweek| formatter[aweek] }
when :line
header(from, color, :line) +
- Array( formatter[dates from, true, false] )
+ Array( formatter[dates] )
when :block3
months = [self-1, self, self+1]
three_columns_formatter[months, from, color]
@@ -47,7 +47,7 @@ def format(style=:block, from=0, color=false, footer=true)
footer ? body + holiday_names(style==:block3 ? months : Array(self)) : body
end
- def color_format(style=:block, from=0, footer=true)
+ def color_format(style=:block, from=0, footer=false)
format(style, from, true, footer)
end

0 comments on commit 9af008a

Please sign in to comment.
Something went wrong with that request. Please try again.