class Rouge::RegexLexer::Rule
@see StateDSL#rule
to perform if the test succeeds.
A rule is a tuple of a regular expression to test, and a callback
def initialize(re, callback)
def initialize(re, callback) @re = re @callback = callback @beginning_of_line = re.source[0] == ?^ end
def inspect
def inspect "#<Rule #{@re.inspect}>" end