Class: Plurimath::Math::Symbols::Paren::Lbrace

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#close?Boolean

Returns:

  • (Boolean)


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

def close?
  false
end

#closingObject



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

def closing
  Rbrace
end

#open?Boolean

Returns:

  • (Boolean)


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

def open?
  true
end

#to_asciimathObject



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

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

#to_htmlObject



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

def to_html(**)
  "{"
end

#to_latexObject

output methods



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

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

#to_mathml_without_math_tag(_) ⇒ Object



29
30
31
# File 'lib/plurimath/math/symbols/paren/lbrace.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/lbrace.rb', line 33

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

#to_unicodemathObject



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

def to_unicodemath(**)
  encoded
end