Class: Plurimath::Math::Symbols::Paren::Rceil

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

Constant Summary collapse

INPUT =
{
  unicodemath: [["⌉", "rceil"],
                parsing_wrapper(["rceiling", "~|"], lang: :unicode)],
  asciimath: [["rceiling", "~|", "⌉"],
              parsing_wrapper(["rceil"], lang: :asciimath)],
  mathml: ["⌉"],
  latex: [["\\rceil", "⌉"],
          parsing_wrapper(["rceiling", "~|"], 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/rceil.rb', line 47

def close?
  true
end

#open?Boolean

Returns:

  • (Boolean)


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

def open?
  false
end

#openingObject



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

def opening
  Lceil
end

#to_asciimathObject



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

def to_asciimath(**)
  "~|"
end

#to_htmlObject



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

def to_html(**)
  "⌉"
end

#to_latexObject

output methods



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

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

#to_mathml_without_math_tag(_) ⇒ Object



31
32
33
# File 'lib/plurimath/math/symbols/paren/rceil.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/rceil.rb', line 35

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

#to_unicodemathObject



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

def to_unicodemath(**)
  encoded
end