Class: Twiddler::Lint::Rule
- Inherits:
-
Object
- Object
- Twiddler::Lint::Rule
- Defined in:
- lib/twiddler/lint.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(config) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(config) ⇒ Rule
Returns a new instance of Rule.
25 26 27 |
# File 'lib/twiddler/lint.rb', line 25 def initialize(config) @config = config end |
Class Method Details
.register ⇒ Object
15 16 17 18 |
# File 'lib/twiddler/lint.rb', line 15 def register @@registered ||= [] @@registered << self end |
.registered ⇒ Object
20 21 22 |
# File 'lib/twiddler/lint.rb', line 20 def registered @@registered || [] end |
Instance Method Details
#check ⇒ Object
29 30 31 |
# File 'lib/twiddler/lint.rb', line 29 def check() return "" end |