Class: Plurimath::Math::Symbols::Paren::Lbrack

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#close?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/plurimath/math/symbols/paren/lbrack.rb', line 45

def close?
  false
end

#closingObject



49
50
51
# File 'lib/plurimath/math/symbols/paren/lbrack.rb', line 49

def closing
  Rbrack
end

#open?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/plurimath/math/symbols/paren/lbrack.rb', line 41

def open?
  true
end

#to_asciimathObject



21
22
23
# File 'lib/plurimath/math/symbols/paren/lbrack.rb', line 21

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

#to_htmlObject



37
38
39
# File 'lib/plurimath/math/symbols/paren/lbrack.rb', line 37

def to_html(**)
  "["
end

#to_latexObject

output methods



17
18
19
# File 'lib/plurimath/math/symbols/paren/lbrack.rb', line 17

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

#to_mathml_without_math_tag(_) ⇒ Object



29
30
31
# File 'lib/plurimath/math/symbols/paren/lbrack.rb', line 29

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

#to_omml_without_math_tag(_) ⇒ Object



33
34
35
# File 'lib/plurimath/math/symbols/paren/lbrack.rb', line 33

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

#to_unicodemathObject



25
26
27
# File 'lib/plurimath/math/symbols/paren/lbrack.rb', line 25

def to_unicodemath(**)
  encoded
end