Class: Plurimath::Math::Symbols::Paren::Lceil

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

Constant Summary collapse

INPUT =
{
  unicodemath: [["⌈", "lceil"],
                parsing_wrapper(["lceiling", "|~"], lang: :unicode)],
  asciimath: [["lceiling", "|~", "⌈"],
              parsing_wrapper(["lceil"], lang: :asciimath)],
  mathml: ["⌈"],
  latex: [["\\lceil", "⌈"],
          parsing_wrapper(["lceiling", "|~"], lang: :latex)],
  omml: ["⌈"],
  html: ["⌈"],
}.freeze

Instance Method Summary collapse

Instance Method Details

#close?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/plurimath/math/symbols/paren/lceil.rb', line 47

def close?
  false
end

#closingObject



51
52
53
# File 'lib/plurimath/math/symbols/paren/lceil.rb', line 51

def closing
  Rceil
end

#open?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/plurimath/math/symbols/paren/lceil.rb', line 43

def open?
  true
end

#to_asciimathObject



23
24
25
# File 'lib/plurimath/math/symbols/paren/lceil.rb', line 23

def to_asciimath(**)
  "|~"
end

#to_htmlObject



39
40
41
# File 'lib/plurimath/math/symbols/paren/lceil.rb', line 39

def to_html(**)
  "⌈"
end

#to_latexObject

output methods



19
20
21
# File 'lib/plurimath/math/symbols/paren/lceil.rb', line 19

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

#to_mathml_without_math_tag(_) ⇒ Object



31
32
33
# File 'lib/plurimath/math/symbols/paren/lceil.rb', line 31

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

#to_omml_without_math_tag(_) ⇒ Object



35
36
37
# File 'lib/plurimath/math/symbols/paren/lceil.rb', line 35

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

#to_unicodemathObject



27
28
29
# File 'lib/plurimath/math/symbols/paren/lceil.rb', line 27

def to_unicodemath(**)
  encoded
end