Class: ExtractI18n::HTMLExtractor::Match::Finder
- Inherits:
-
Object
- Object
- ExtractI18n::HTMLExtractor::Match::Finder
- Defined in:
- lib/extract_i18n/html_extractor/match.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
Instance Method Summary collapse
-
#initialize(document) ⇒ Finder
constructor
A new instance of Finder.
- #matches ⇒ Object
Constructor Details
#initialize(document) ⇒ Finder
Returns a new instance of Finder.
7 8 9 |
# File 'lib/extract_i18n/html_extractor/match.rb', line 7 def initialize(document) @document = document end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
5 6 7 |
# File 'lib/extract_i18n/html_extractor/match.rb', line 5 def document @document end |
Instance Method Details
#matches ⇒ Object
11 12 13 |
# File 'lib/extract_i18n/html_extractor/match.rb', line 11 def matches erb_nodes(document) + plain_text_nodes(document) + form_fields(document) end |