Class: DoctorNinja::Parsers::Text
- Inherits:
-
Base
- Object
- Base
- DoctorNinja::Parsers::Text
show all
- Defined in:
- lib/doctor_ninja/parsers/text.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #parse_children
Class Method Details
.applicable_to?(node) ⇒ Boolean
4
5
6
|
# File 'lib/doctor_ninja/parsers/text.rb', line 4
def self.applicable_to?(node)
node.text?
end
|
Instance Method Details
#parse ⇒ Object
8
9
10
11
|
# File 'lib/doctor_ninja/parsers/text.rb', line 8
def parse
@context[:has_text] = true
@node.text
end
|