class Rouge::Lexers::Lasso

Public Class Methods

detect?(text) click to toggle source
# File lib/rouge/lexers/lasso.rb, line 17
def self.detect?(text)
  return true if text.shebang?('lasso9')
  return true if text =~ /\A.*?<\?(lasso(script)?|=)/
end
keywords() click to toggle source

self-modifying method that loads the keywords file

# File lib/rouge/lexers/lasso.rb, line 37
def self.keywords
  Kernel::load File.join(Lexers::BASE_DIR, 'lasso/keywords.rb')
  keywords
end
new(*) click to toggle source
Calls superclass method
# File lib/rouge/lexers/lasso.rb, line 22
def initialize(*)
  super

  @start_inline = bool_option(:start_inline)
end

Public Instance Methods

start_inline?() click to toggle source
# File lib/rouge/lexers/lasso.rb, line 28
def start_inline?
  @start_inline
end