Class: HamlLint::Adapter::Haml4
- Inherits:
-
HamlLint::Adapter
- Object
- HamlLint::Adapter
- HamlLint::Adapter::Haml4
- Extended by:
- Forwardable
- Defined in:
- lib/haml_lint/adapter/haml_4.rb
Overview
Adapts the Haml::Parser from Haml 4 for use in HamlLint :reek:UncommunicativeModuleName
Instance Method Summary collapse
-
#initialize(source, options = Haml::Options.new) ⇒ Haml4
constructor
Parses the specified Haml code into an abstract syntax tree.
Methods inherited from HamlLint::Adapter
Constructor Details
#initialize(source, options = Haml::Options.new) ⇒ Haml4
Parses the specified Haml code into an abstract syntax tree
16 17 18 |
# File 'lib/haml_lint/adapter/haml_4.rb', line 16 def initialize(source, = Haml::Options.new) @parser = Haml::Parser.new(source, ) end |