Class: Plurimath::Math::Symbols::Paren::Rfloor

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

Constant Summary collapse

INPUT =
{
  unicodemath: [["⌋", "rfloor"],
                parsing_wrapper(["__|"], lang: :unicode)],
  asciimath: [["rfloor", "__|", "⌋"]],
  mathml: ["⌋"],
  latex: [["\\rfloor", "⌋"],
          parsing_wrapper(["__|"], 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/rfloor.rb', line 46

def close?
  true
end

#open?Boolean

Returns:

  • (Boolean)


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

def open?
  false
end

#openingObject



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

def opening
  Lfloor
end

#to_asciimathObject



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

def to_asciimath(**)
  "__|"
end

#to_htmlObject



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

def to_html(**)
  "⌋"
end

#to_latexObject

output methods



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

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

#to_mathml_without_math_tag(_) ⇒ Object



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

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

#to_omml_without_math_tag(_) ⇒ Object



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

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

#to_unicodemathObject



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

def to_unicodemath(**)
  encoded
end