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
69 70 71 72 73 |
# File 'lib/embedrb/embed.rb', line 69 def initialize(, input) = EmbedRb.deep_merge(DEFAULT_OPTIONS, ) [:served] = [] @input = input end |
Instance Method Details
#process ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/embedrb/embed.rb', line 75 def process() input = @input = [] output = '' PROCESSORS.each {|key, klass| if [key] && EmbedRb.process_more?(, key, ) output = klass.new(input, output, , ).process end } EmbedRb.create_text(output, ) end |