class Rouge::Lexer
def filenames(*fnames)
filenames '*.rb', '*.ruby', 'Gemfile', 'Rakefile'
class Ruby < Lexer
@example
manual rule will be specified in Guessers::Disambiguation.
`self.detect?` method (intended for use with shebangs and doctypes) or a
are disambiguated in one of two ways. Either the lexer will define a
methods. These errors can be avoided by disambiguation. Filename globs
cause a Guesser::Ambiguous error to be raised in various guessing
If a filename glob is associated with more than one lexer, this can
Specify a list of filename globs associated with this lexer.
def filenames(*fnames) (@filenames ||= []).concat(fnames) end