lib/ronin/templates/erb.rb in ronin-support-0.1.0 vs lib/ronin/templates/erb.rb in ronin-support-0.2.0.rc1

- old
+ new

@@ -45,10 +45,12 @@ # USER: <%= @user %> # PASSWORD: <%= @user.reverse %> # } # # => "\nUSER: lolcats\nPASSWORD: staclol\n" # + # @api public + # def erb(template) ERB.new(template).result(binding) end # @@ -60,9 +62,11 @@ # @return [String] # Result of the rendered template. # # @example # erb_file 'path/to/template.erb' + # + # @api public # def erb_file(template_path) read_template(template_path) do |template| erb(template) end