class Rouge::Lexer

def detectable?

singleton class.
Determine if a lexer has a method named +:detect?+ defined in its
def detectable?
  @detectable ||= methods(false).include?(:detect?)
end