Class: Plurimath::Math::Symbols::Paren::Norm

Inherits:
Paren
  • Object
show all
Defined in:
lib/plurimath/math/symbols/paren/norm.rb

Constant Summary collapse

INPUT =
{
  unicodemath: [["\\Vert", "Vert", "norm", "‖"]],
  asciimath: [["‖"],
              parsing_wrapper(["Vert", "norm"], lang: :asciimath)],
  mathml: ["‖"],
  latex: [["\\Vert", "‖"],
          parsing_wrapper(["norm"], lang: :latex)],
  omml: ["‖"],
  html: ["‖"],
}.freeze

Instance Method Summary collapse

Instance Method Details

#close?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 46

def close?
  false
end

#closingObject



50
51
52
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 50

def closing
  Norm
end

#open?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 42

def open?
  true
end

#openingObject



54
55
56
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 54

def opening
  Norm
end

#paren_valueObject



62
63
64
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 62

def paren_value
  encoded
end

#to_asciimathObject



22
23
24
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 22

def to_asciimath(**)
  "norm"
end

#to_htmlObject



38
39
40
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 38

def to_html(**)
  "‖"
end

#to_latexObject

output methods



18
19
20
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 18

def to_latex(**)
  "\\Vert"
end

#to_mathml_without_math_tag(_) ⇒ Object



30
31
32
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 30

def to_mathml_without_math_tag(_, **)
  ox_element("mi") << encoded
end

#to_matricesObject



58
59
60
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 58

def to_matrices
  "\\Vert"
end

#to_omml_without_math_tag(_) ⇒ Object



34
35
36
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 34

def to_omml_without_math_tag(_, **)
  "&#x2016;"
end

#to_unicodemathObject



26
27
28
# File 'lib/plurimath/math/symbols/paren/norm.rb', line 26

def to_unicodemath(**)
  encoded
end