Module: CodeLexer

Defined in:
lib/code-lexer.rb,
lib/code-lexer/lexer.rb,
lib/code-lexer/token.rb,
lib/code-lexer/config.rb,
lib/code-lexer/abstractor.rb

Defined Under Namespace

Classes: Abstractor, Config, LexedContent, Lexer, Token

Class Method Summary collapse

Class Method Details

.get(language) ⇒ Object



7
8
9
# File 'lib/code-lexer.rb', line 7

def self.get(language)
    return Lexer.new("#{File.dirname(File.expand_path(__FILE__))}/code-lexer/languages/#{language}.yml")
end