class ExtractI18n::HTMLExtractor::Match::BaseMatch
Attributes
node[R]
Public Class Methods
new(document, node, text)
click to toggle source
Calls superclass method
# File lib/extract_i18n/html_extractor/match/base_match.rb, line 7 def initialize(document, node, text) super(document, text) @node = node end
Public Instance Methods
replace_text!()
click to toggle source
# File lib/extract_i18n/html_extractor/match/base_match.rb, line 12 def replace_text! node.content = translation_key_object end