Skip to content

Commit

Permalink
change default footer to false
Browse files Browse the repository at this point in the history
  • Loading branch information
melborne committed Dec 17, 2010
1 parent da7d6b9 commit 9af008a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/month.rb
Expand Up @@ -29,7 +29,7 @@ def dates_by_block(from=0)
end end


alias formaty format 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 formatter = color ? color_proc : mono_proc
body = body =
case style case style
Expand All @@ -38,7 +38,7 @@ def format(style=:block, from=0, color=false, footer=true)
dates_by_block(from).map { |aweek| formatter[aweek] } dates_by_block(from).map { |aweek| formatter[aweek] }
when :line when :line
header(from, color, :line) + header(from, color, :line) +
Array( formatter[dates from, true, false] ) Array( formatter[dates] )
when :block3 when :block3
months = [self-1, self, self+1] months = [self-1, self, self+1]
three_columns_formatter[months, from, color] three_columns_formatter[months, from, color]
Expand All @@ -47,7 +47,7 @@ def format(style=:block, from=0, color=false, footer=true)
footer ? body + holiday_names(style==:block3 ? months : Array(self)) : body footer ? body + holiday_names(style==:block3 ? months : Array(self)) : body
end end


def color_format(style=:block, from=0, footer=true) def color_format(style=:block, from=0, footer=false)
format(style, from, true, footer) format(style, from, true, footer)
end end


Expand Down

0 comments on commit 9af008a

Please sign in to comment.