class Simplec::NokogiriBuilder
Public Class Methods
call(template)
click to toggle source
# File lib/simplec/nokogiri_builder.rb, line 8 def self.call(template) "xml = ::Nokogiri::XML::Builder.new(encoding: 'UTF-8') { |xml| #{template.source} }.to_xml;" end