Class: Plurimath::Html::Utility

Inherits:
Utility
  • Object
show all
Defined in:
lib/plurimath/html/utility.rb

Overview

Html-specific helper extracted from Plurimath::Utility (code-quality refactor). Subclasses Utility so bareword Utility.<generic> calls inside Html files keep resolving here and inherit the generic helpers.

Class Method Summary collapse

Class Method Details

.sub_sup_method?(sub_sup) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
13
14
# File 'lib/plurimath/html/utility.rb', line 10

def sub_sup_method?(sub_sup)
  if sub_sup.methods.include?(:class_name)
    Html::Constants::SUB_SUP_CLASSES.value?(sub_sup.class_name.to_sym)
  end
end