lib/ronin/templates/erb.rb in ronin-support-0.3.0 vs lib/ronin/templates/erb.rb in ronin-support-0.4.0.rc1
- old
+ new
@@ -27,10 +27,11 @@
# The {Erb} module uses the {Template} module to find and render
# Embedded Ruby (ERB) templates.
#
module Erb
include Template
+
#
# Renders the inline ERB template in the scope of the object.
#
# @param [String] template
# Source of the ERB template.
@@ -48,10 +49,10 @@
# # => "\nUSER: lolcats\nPASSWORD: staclol\n"
#
# @api public
#
def erb(template)
- ERB.new(template).result(binding)
+ ERB.new(template,nil,'-').result(binding)
end
#
# Renders an ERB template file in the scope of the object.
#