Class: RunPatternTests
- Inherits:
-
GrammarLinter
- Object
- GrammarPlugin
- GrammarLinter
- RunPatternTests
- Defined in:
- lib/ruby_grammar_builder/linters/tests.rb
Overview
Runs the unit tests on each pattern
Instance Method Summary collapse
-
#pre_lint(pattern, _options) ⇒ Boolean
Runs the unit tests on each pattern.
Methods inherited from GrammarLinter
Methods inherited from GrammarPlugin
Instance Method Details
#pre_lint(pattern, _options) ⇒ Boolean
Runs the unit tests on each pattern
12 13 14 15 16 |
# File 'lib/ruby_grammar_builder/linters/tests.rb', line 12 def pre_lint(pattern, ) return true unless pattern.is_a? PatternBase pattern.run_tests end |