Module: Plurimath::UnicodeMath::ParsingRules::Masked
- Includes:
- Helper
- Included in:
- Plurimath::UnicodeMath::Parse
- Defined in:
- lib/plurimath/unicode_math/parsing_rules/masked.rb
Instance Method Summary collapse
Methods included from Helper
Instance Method Details
#bracketed_masked_value(func_name) ⇒ Object
75 76 77 |
# File 'lib/plurimath/unicode_math/parsing_rules/masked.rb', line 75 def bracketed_masked_value(func_name) str("(") >> masked_value(func_name).as(func_name) >> str(")") end |
#masked_value(func_name) ⇒ Object
71 72 73 |
# File 'lib/plurimath/unicode_math/parsing_rules/masked.rb', line 71 def masked_value(func_name) match["^&"].repeat(1).as(:"#{func_name}_value") >> str("&") >> masked_recursive_value.as(:first_value) end |