Class: Opal::BuilderProcessors::OpalERBProcessor

Inherits:
RubyProcessor show all
Defined in:
opal/lib/opal/builder_processors.rb

Instance Attribute Summary

Attributes inherited from Processor

#filename, #options, #required_trees, #source

Instance Method Summary collapse

Methods inherited from RubyProcessor

#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.



110
111
112
113
# File 'opal/lib/opal/builder_processors.rb', line 110

def initialize(*args)
  super
  @source = prepare(@source, @filename)
end

Instance Method Details

#requiresObject



115
116
117
# File 'opal/lib/opal/builder_processors.rb', line 115

def requires
  ['erb'] + super
end