class Rugments::Lexers::ERB
Public Class Methods
analyze_text(text)
click to toggle source
# File lib/rugments/lexers/erb.rb, line 12 def self.analyze_text(text) return 0.4 if text =~ /<%.*%>/ end
new(opts = {})
click to toggle source
Calls superclass method
# File lib/rugments/lexers/erb.rb, line 16 def initialize(opts = {}) @ruby_lexer = Ruby.new(opts) super(opts) end