Class: Opal::BuilderProcessors::OpalERBProcessor
- Inherits:
-
RubyProcessor
- Object
- Processor
- RubyProcessor
- Opal::BuilderProcessors::OpalERBProcessor
- Defined in:
- opal/lib/opal/builder_processors.rb
Instance Attribute Summary
Attributes inherited from Processor
#autoloads, #filename, #options, #required_trees, #source
Instance Method Summary collapse
-
#initialize(*args) ⇒ OpalERBProcessor
constructor
A new instance of OpalERBProcessor.
- #requires ⇒ Object
Methods inherited from RubyProcessor
#autoloads, #cache_key, #compiled, #compiler_for, match?, #required_trees, #source, #source_map
Methods inherited from Processor
handles, #mark_as_required, match?, match_regexp, #to_s
Constructor Details
#initialize(*args) ⇒ OpalERBProcessor
Returns a new instance of OpalERBProcessor.
120 121 122 123 |
# File 'opal/lib/opal/builder_processors.rb', line 120 def initialize(*args) super @source = prepare(@source, @filename) end |
Instance Method Details
#requires ⇒ Object
125 126 127 |
# File 'opal/lib/opal/builder_processors.rb', line 125 def requires ['erb'] + super end |