Class: EmbedRb::Embed
- Inherits:
-
Object
- Object
- EmbedRb::Embed
- Defined in:
- lib/embedrb/embed.rb
Instance Method Summary collapse
-
#initialize(options, input) ⇒ Embed
constructor
A new instance of Embed.
- #process ⇒ Object
Constructor Details
#initialize(options, input) ⇒ Embed
Returns a new instance of Embed.
70 71 72 73 74 |
# File 'lib/embedrb/embed.rb', line 70 def initialize(, input) @options = EmbedRb.deep_merge(DEFAULT_OPTIONS, ) @options[:served] = [] @input = input end |
Instance Method Details
#process ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/embedrb/embed.rb', line 76 def process() input = @input = [] output = '' PROCESSORS.each {|key, klass| if @options[key] && EmbedRb.process_more?(@options, key, ) output = klass.new(input, output, @options, ).process end } EmbedRb.create_text(output, ) end |