Class: HamlLint::Directive::Null
- Inherits:
-
HamlLint::Directive
- Object
- HamlLint::Directive
- HamlLint::Directive::Null
- Defined in:
- lib/haml_lint/directive.rb
Overview
A null representation of a directive.
Constant Summary
Constants inherited from HamlLint::Directive
DIRECTIVE_REGEXP, LINTER_REGEXP
Instance Attribute Summary
Attributes inherited from HamlLint::Directive
Instance Method Summary collapse
-
#disable? ⇒ false
Stubs out the disable check as false.
-
#enable? ⇒ false
Stubs out the ensable check as false.
-
#initialize(source, line) ⇒ Null
constructor
Instantiates a new null directive.
-
#inspect ⇒ String
Formats the null directive for display in a console.
-
#linters ⇒ Array
Stubs out the linters.
Methods inherited from HamlLint::Directive
Constructor Details
#initialize(source, line) ⇒ Null
Instantiates a new null directive.
94 95 96 97 |
# File 'lib/haml_lint/directive.rb', line 94 def initialize(source, line) @source = source @line = line end |
Instance Method Details
#disable? ⇒ false
Stubs out the disable check as false.
102 103 104 |
# File 'lib/haml_lint/directive.rb', line 102 def disable? false end |
#enable? ⇒ false
Stubs out the ensable check as false.
109 110 111 |
# File 'lib/haml_lint/directive.rb', line 109 def enable? false end |
#inspect ⇒ String
Formats the null directive for display in a console.
116 117 118 |
# File 'lib/haml_lint/directive.rb', line 116 def inspect '#<HamlLint::Directive::Null>' end |
#linters ⇒ Array
Stubs out the linters.
123 124 125 |
# File 'lib/haml_lint/directive.rb', line 123 def linters [] end |