class HamlLint::Directive::Null

A null representation of a directive.

Public Class Methods

new(source, line) click to toggle source

Instantiates a new null directive.

@param source [String] the source code to analyze @param line [Integer] the line number the source starts at

# File lib/haml_lint/directive.rb, line 95
def initialize(source, line)
  @source = source
  @line = line
end

Public Instance Methods

disable?() click to toggle source

Stubs out the disable check as false.

@return [false]

# File lib/haml_lint/directive.rb, line 103
def disable?
  false
end
enable?() click to toggle source

Stubs out the ensable check as false.

@return [false]

# File lib/haml_lint/directive.rb, line 110
def enable?
  false
end
inspect() click to toggle source

Formats the null directive for display in a console.

@return [String]

# File lib/haml_lint/directive.rb, line 117
def inspect
  '#<HamlLint::Directive::Null>'
end
linters() click to toggle source

Stubs out the linters.

@return [Array]

# File lib/haml_lint/directive.rb, line 124
def linters
  []
end