lib/danica/wrapper/variable.rb in danica-2.7.5 vs lib/danica/wrapper/variable.rb in danica-2.7.6

- old
+ new

@@ -25,22 +25,25 @@ value.nil? ? raise(Exception::NotDefined) : value.to_f end def ==(other) return false unless other.class == self.class + other.value == value && other.name == name && other.latex == latex && other.gnuplot == gnuplot end def to_tex(**options) return value.to_tex(options) if value + (latex || name).to_s end def to_gnu(**options) return value.to_gnu(options) if value + (gnuplot || name).to_s end def value=(value) @value = value.is_a?(Numeric) ? number(value) : value