Methods
Instance Public methods
call(template, source)
📝 Source code
# File actionview/lib/action_view/template/handlers/builder.rb, line 8
def call(template, source)
require_engine
"xml = ::Builder::XmlMarkup.new(:indent => 2);" \
"self.output_buffer = xml.target!;" +
source +
";xml.target!;"
end
🔎 See on GitHub
Instance Private methods
require_engine()
📝 Source code
# File actionview/lib/action_view/template/handlers/builder.rb, line 17
def require_engine # :doc:
@required ||= begin
require "builder"
true
end
end
🔎 See on GitHub