Parent

Methods

Class/Module Index [+]

Quicksearch

Rouge::Lexers::Shell

Constants

BUILTINS
KEYWORDS

Public Class Methods

analyze_text(text) click to toggle source
# File lib/rouge/lexers/shell.rb, line 13
def self.analyze_text(text)
  text.shebang?(/(ba|z|k)?sh/) ? 1 : 0
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.