Class: BaseTextExtractor
- Inherits:
-
TextExtractor
- Object
- TextExtractor
- BaseTextExtractor
- Defined in:
- lib/core/base_text_extractor.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#completed_text_extraction ⇒ Object
This is called when text extraction has finished.
-
#html_text(text_node) ⇒ Object
This takes in a text node and returns one or more nodes that will then be output.
-
#starting_text_extraction ⇒ Object
This is called when text extraction has begun.
Methods inherited from TextExtractor
#add_html_text, #add_non_text, #add_variable, #end_html_text, #pluralize, #start_html_text, #translate_method_call_text, #translate_text, #white_space
Instance Method Details
#completed_text_extraction ⇒ Object
This is called when text extraction has finished
16 17 |
# File 'lib/core/base_text_extractor.rb', line 16 def completed_text_extraction end |
#html_text(text_node) ⇒ Object
This takes in a text node and returns one or more nodes that will then be output. The nodes that are output should implement node_name and text_value
11 12 13 |
# File 'lib/core/base_text_extractor.rb', line 11 def html_text( text_node ) self.remove_leading_and_trailing_whitespace( text_node ) end |
#starting_text_extraction ⇒ Object
This is called when text extraction has begun
4 5 |
# File 'lib/core/base_text_extractor.rb', line 4 def starting_text_extraction end |