Object
A rule is a tuple of a regular expression to test, and a callback to perform if the test succeeds.
@see StateDSL#rule
# File lib/rouge/regex_lexer.rb, line 14 def initialize(re, callback) @re = re @callback = callback @beginning_of_line = re.source[0] == ^^ end
# File lib/rouge/regex_lexer.rb, line 20 def inspect "#<Rule #{@re.inspect}>" end
[Validate]
Generated with the Darkfish Rdoc Generator 2.