Class: ViewInspect::Handlers::EJS

Inherits:
HTMLTemplate show all
Defined in:
lib/view_inspect/handlers/ejs.rb

Constant Summary

Constants inherited from HTMLTemplate

HTMLTemplate::STUB_PREFIX

Class Method Summary collapse

Methods inherited from HTMLTemplate

#add_file_line, #add_file_line_to_html_tags, #initialize, #replace_expression_with_stub, #replace_stub_with_expression

Constructor Details

This class inherits a constructor from ViewInspect::Handlers::HTMLTemplate

Class Method Details

.expression_regexObject



6
7
8
# File 'lib/view_inspect/handlers/ejs.rb', line 6

def self.expression_regex
  /(<%(=+|-|\#|%)?(.*?)([-=])?%>([ \t]*)?)/m # same as erb
end