Class: Extract::Unescape

Inherits:
Base
  • Object
show all
Defined in:
lib/src/extract/unescape.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Extract::Base

Instance Method Details

#unescape!Object



5
6
7
8
9
10
11
12
# File 'lib/src/extract/unescape.rb', line 5

def unescape!
  unescape_tag = node.props[:unescape]

  paths_to_unescape = extractor.paths_of(node.path, unescape_tag)
  return if paths_to_unescape.empty?

  paths_to_unescape.each { |path| extractor.unescape!(path) }
end