Method: String#math_environment?
- Defined in:
- lib/polytexnic/literal.rb
#math_environment? ⇒ Boolean
Returns true if self matches a valid math environment.
300 301 302 |
# File 'lib/polytexnic/literal.rb', line 300 def math_environment? match(/(?:#{math_environment_regex})/) end |