Class: Plurimath::Math::Function::FontStyle
- Inherits:
-
BinaryFunction
show all
- Defined in:
- lib/plurimath/math/function/font_style.rb,
lib/plurimath/math/function/font_style/bold.rb,
lib/plurimath/math/function/font_style/italic.rb,
lib/plurimath/math/function/font_style/normal.rb,
lib/plurimath/math/function/font_style/script.rb,
lib/plurimath/math/function/font_style/fraktur.rb,
lib/plurimath/math/function/font_style/monospace.rb,
lib/plurimath/math/function/font_style/sans-serif.rb,
lib/plurimath/math/function/font_style/double_struck.rb
Defined Under Namespace
Classes: Bold, DoubleStruck, Fraktur, Italic, Monospace, Normal, SansSerif, Script
Instance Attribute Summary
#parameter_one, #parameter_two
Instance Method Summary
collapse
#==, #class_name, #initialize
Instance Method Details
#to_asciimath ⇒ Object
9
10
11
|
# File 'lib/plurimath/math/function/font_style.rb', line 9
def to_asciimath
parameter_one&.to_asciimath
end
|
#to_html ⇒ Object
28
29
30
|
# File 'lib/plurimath/math/function/font_style.rb', line 28
def to_html
parameter_one&.to_html
end
|
#to_latex ⇒ Object
32
33
34
|
# File 'lib/plurimath/math/function/font_style.rb', line 32
def to_latex
parameter_one&.to_latex
end
|
#to_mathml_without_math_tag ⇒ Object
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/plurimath/math/function/font_style.rb', line 13
def to_mathml_without_math_tag
first_value = parameter_one&.to_mathml_without_math_tag
Utility.update_nodes(
Utility.ox_element(
"mstyle",
attributes: { mathvariant: parameter_two },
),
[first_value],
)
end
|
#to_omml_without_math_tag ⇒ Object
24
25
26
|
# File 'lib/plurimath/math/function/font_style.rb', line 24
def to_omml_without_math_tag
parameter_one&.to_omml_without_math_tag
end
|