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:
parent
c73ab70e86
commit
e4db42dea4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue