Class: CommentExtractor::Extractor::Haml

Inherits:
CommentExtractor::Extractor show all
Defined in:
lib/comment_extractor/extractor/haml.rb

Constant Summary

Constants inherited from CommentExtractor::Extractor

REGEXP, SCHAME_ACCESSOR_NAMES

Instance Attribute Summary

Attributes inherited from CommentExtractor::Extractor

#code_objects, #content

Instance Method Summary collapse

Methods inherited from CommentExtractor::Extractor

disable!, disabled?, #extract_comments, #initialize, schema, schema_accessor

Constructor Details

This class inherits a constructor from CommentExtractor::Extractor

Instance Method Details

#scanObject

review
  • incompleted method



11
12
13
14
15
16
17
18
# File 'lib/comment_extractor/extractor/haml.rb', line 11

def scan
  options = ::Haml::Options.new
  parser = ::Haml::Parser.new(self.content, options)
  parsered = parser.parse
  parsered.children.each do |node|
    detect_comment_from_node(node)
  end
end