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.
96 97 98 99 |
# File 'lib/haml_lint/directive.rb', line 96 def initialize(source, line) @source = source @line = line end |
Instance Method Details
#disable? ⇒ false
Stubs out the disable check as false.
104 105 106 |
# File 'lib/haml_lint/directive.rb', line 104 def disable? false end |
#enable? ⇒ false
Stubs out the ensable check as false.
111 112 113 |
# File 'lib/haml_lint/directive.rb', line 111 def enable? false end |
#inspect ⇒ String
Formats the null directive for display in a console.
118 119 120 |
# File 'lib/haml_lint/directive.rb', line 118 def inspect '#<HamlLint::Directive::Null>' end |
#linters ⇒ Array
Stubs out the linters.
125 126 127 |
# File 'lib/haml_lint/directive.rb', line 125 def linters [] end |