Class: HamlLint::Tree::NullNode
- Defined in:
- lib/haml_lint/tree/null_node.rb
Overview
A null object version of a node that can be used as a safe default.
Instance Attribute Summary
Attributes inherited from Node
#children, #line, #parent, #type
Instance Method Summary collapse
-
#disabled?(_linter) ⇒ false
Overrides the disabled check to always say the linter is enabled.
-
#initialize(*_args) ⇒ NullNode
constructor
Instantiates a new NullNode, ignoring all input.
Methods inherited from Node
#comment_configuration, #directives, #each, #inspect, #keyword, #line_numbers, #lines, #next_node, #predecessor, #source_code, #subsequents, #successor, #text
Constructor Details
#initialize(*_args) ⇒ NullNode
Instantiates a new HamlLint::Tree::NullNode, ignoring all input.
7 |
# File 'lib/haml_lint/tree/null_node.rb', line 7 def initialize(*_args); end |
Instance Method Details
#disabled?(_linter) ⇒ false
Overrides the disabled check to always say the linter is enabled.
13 14 15 |
# File 'lib/haml_lint/tree/null_node.rb', line 13 def disabled?(_linter) false end |