Module: LatexToUnicode::Latex::Unary1
- Defined in:
- lib/latex_grammar.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
498 499 500 501 502 503 504 505 506 |
# File 'lib/latex_grammar.rb', line 498 def value set = case (cmd = unary_command.text_value) when '_' then LatexToUnicode::SUBSCRIPTS when '^' then LatexToUnicode::SUPERSCRIPTS else LatexToUnicode.const_get cmd[1..-1].upcase end LatexToUnicode::translate(element.value, set) end |