方法
- C
- R
实例公共方法
call(template, source) 链接
源代码: 显示 | 在 GitHub 上查看
# File actionview/lib/action_view/template/handlers/builder.rb, line 8 def call(template, source) require_engine # the double assignment is to silence "assigned but unused variable" warnings "xml = xml = ::Builder::XmlMarkup.new(indent: 2, target: output_buffer.raw);" \ "#{source};" \ "output_buffer.to_s" end
实例私有方法
require_engine() 链接
源代码: 显示 | 在 GitHub 上查看
# File actionview/lib/action_view/template/handlers/builder.rb, line 17 def require_engine # :doc: @required ||= begin require "builder" true end end