Class: Unitsml::Sqrt
- Inherits:
-
Object
- Object
- Unitsml::Sqrt
- Defined in:
- lib/unitsml/sqrt.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Sqrt
constructor
A new instance of Sqrt.
- #to_asciimath(options) ⇒ Object
- #to_html(options) ⇒ Object
- #to_latex(options) ⇒ Object
- #to_mathml(options) ⇒ Object
- #to_unicode(options) ⇒ Object
Constructor Details
#initialize(value) ⇒ Sqrt
Returns a new instance of Sqrt.
7 8 9 |
# File 'lib/unitsml/sqrt.rb', line 7 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/unitsml/sqrt.rb', line 5 def value @value end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 14 |
# File 'lib/unitsml/sqrt.rb', line 11 def ==(other) self.class == other.class && value == other&.value end |
#to_asciimath(options) ⇒ Object
16 17 18 |
# File 'lib/unitsml/sqrt.rb', line 16 def to_asciimath() value&.to_asciimath() end |
#to_html(options) ⇒ Object
28 29 30 |
# File 'lib/unitsml/sqrt.rb', line 28 def to_html() value&.to_html() end |
#to_latex(options) ⇒ Object
20 21 22 |
# File 'lib/unitsml/sqrt.rb', line 20 def to_latex() value&.to_latex() end |
#to_mathml(options) ⇒ Object
24 25 26 |
# File 'lib/unitsml/sqrt.rb', line 24 def to_mathml() value&.to_mathml() end |
#to_unicode(options) ⇒ Object
32 33 34 |
# File 'lib/unitsml/sqrt.rb', line 32 def to_unicode() value&.to_unicode() end |