Class: Plurimath::Mathml::Utility
- Inherits:
-
Utility
- Object
- Utility
- Plurimath::Mathml::Utility
show all
- Extended by:
- FunctionTokenResolver
- Defined in:
- lib/plurimath/mathml/utility.rb
Class Method Summary
collapse
contextual_accent_from_token
Class Method Details
.resolve_token(value) ⇒ Object
44
45
46
47
48
49
|
# File 'lib/plurimath/mathml/utility.rb', line 44
def resolve_token(value)
return nil if value.nil?
function_from_token(value) ||
symbols_class(string_to_html_entity(value.to_s), lang: :mathml)
end
|