class EmbedRb::Embed
Public Class Methods
new(options, input)
click to toggle source
# File lib/embedrb/embed.rb, line 70 def initialize(options, input) @options = EmbedRb.deep_merge(DEFAULT_OPTIONS, options) @options[:served] = [] @input = input end
Public Instance Methods
process()
click to toggle source
# File lib/embedrb/embed.rb, line 76 def process() input = @input embeds = [] output = '' PROCESSORS.each {|key, klass| if @options[key] && EmbedRb.process_more?(@options, key, embeds) output = klass.new(input, output, @options, embeds).process end } EmbedRb.create_text(output, embeds) end