Parent

Methods

Class/Module Index [+]

Quicksearch

Rouge::Lexers::TOML

Public Class Methods

analyze_text(text) click to toggle source
# File lib/rouge/lexers/toml.rb, line 10
def self.analyze_text(text)
  return 0.1 if text =~ /\A\[[\w.]+\]\s*\w+\s*=\s*("\w+")+/
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.