add encoding option

This commit is contained in:
hibariya
2011-11-11 10:44:18 +09:00
parent 39e06e48bd
commit 620926c379
4 changed files with 30 additions and 10 deletions
+4 -2
View File
@@ -166,9 +166,11 @@ module Gollum
# Public: The formatted contents of the page.
#
# encoding - Encoding Constant or String.
#
# Returns the String data.
def formatted_data(&block)
@blob && markup_class.render(historical?, &block)
def formatted_data(encoding = nil, &block)
@blob && markup_class.render(historical?, encoding, &block)
end
# Public: The format of the page.