lib/rouge/lexers/gherkin.rb in rouge-2.2.1 vs lib/rouge/lexers/gherkin.rb in rouge-3.0.0
- old
+ new
@@ -10,11 +10,11 @@
desc 'A business-readable spec DSL ( github.com/cucumber/cucumber/wiki/Gherkin )'
filenames '*.feature'
mimetypes 'text/x-gherkin'
- def self.analyze_text(text)
- return 1 if text.shebang? 'cucumber'
+ def self.detect?(text)
+ return true if text.shebang? 'cucumber'
end
# self-modifying method that loads the keywords file
def self.keywords
load Pathname.new(__FILE__).dirname.join('gherkin/keywords.rb')