1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Giving puts a default argument.

git-svn-id: svn://hamptoncatlin.com/haml/trunk@411 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2007-03-16 03:07:00 +00:00
parent c73ab70e86
commit e4db42dea4

View file

@ -186,7 +186,7 @@ module Haml
end
# Outputs text directly to the Haml buffer, with the proper tabulation
def puts(text)
def puts(text = "")
buffer.buffer << (' ' * buffer.tabulation) << text << "\n"
nil
end