Class: CommentExtractor::Extractor::Haml
- Inherits:
-
CommentExtractor::Extractor
- Object
- CommentExtractor::Extractor
- CommentExtractor::Extractor::Haml
- Defined in:
- lib/comment_extractor/extractor/haml.rb
Constant Summary
Constants inherited from CommentExtractor::Extractor
Instance Attribute Summary
Attributes inherited from CommentExtractor::Extractor
Instance Method Summary collapse
-
#scan ⇒ Object
- review
-
incompleted method.
-
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
#scan ⇒ Object
- review
-
incompleted method
-
11 12 13 14 15 16 17 18 |
# File 'lib/comment_extractor/extractor/haml.rb', line 11 def scan = ::Haml::Options.new parser = ::Haml::Parser.new(self.content, ) parsered = parser.parse parsered.children.each do |node| detect_comment_from_node(node) end end |