Class: Plurimath::Math::Symbols::Paren::Lbbrack

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

Constant Summary collapse

INPUT =
{
  unicodemath: ["⟦", "lbbrack", "Lbrack"],
  asciimath: [["⟦"],
              parsing_wrapper(["lbbrack", "Lbrack"],
                              lang: :asciimath)],
  mathml: ["⟦"],
  latex: ["⟦",
          parsing_wrapper(["lbbrack", "Lbrack"], 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/lbbrack.rb', line 47

def close?
  false
end

#closingObject



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

def closing
  Rbrack
end

#open?Boolean

Returns:

  • (Boolean)


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

def open?
  true
end

#to_asciimathObject



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

def to_asciimath(**)
  parsing_wrapper("lbbrack", lang: :asciimath)
end

#to_htmlObject



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

def to_html(**)
  "⟦"
end

#to_latexObject

output methods



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

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

#to_mathml_without_math_tag(_) ⇒ Object



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

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

#to_omml_without_math_tag(_) ⇒ Object



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

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

#to_unicodemathObject



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

def to_unicodemath(**)
  encoded
end