Class: DoctorNinja::Parsers::MathPara
- Inherits:
-
Base
- Object
- Base
- DoctorNinja::Parsers::MathPara
show all
- Defined in:
- lib/doctor_ninja/parsers/math_para.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/math_para.rb', line 4
def self.applicable_to?(node)
node.name == "oMathPara"
end
|
Instance Method Details
#parse ⇒ Object
8
9
10
11
12
|
# File 'lib/doctor_ninja/parsers/math_para.rb', line 8
def parse
@context = @context.dup
@context[:is_math_para] = true
parse_children
end
|