Sha256: 226c49abd64490ccbc0e2a7a8d243fd7d62217f760b821821f88f4222f35afea
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
module Danica class Wrapper::Negative include Common include BaseOperations include VariablesHolder attr_accessor :value default_value :priority, 2 default_value :is_grouped?, false delegate :valued?, to: :value def initialize(value) @value = wrap_value(value) end def to_f -value.to_f end def to_tex "-#{wrap_as_group(value).to_tex}" end def to_gnu "-#{wrap_as_group(value).to_gnu}" end def ==(other) return false unless other.class == self.class value == other.value end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danica-2.4.2 | lib/danica/wrapper/negative.rb |
danica-2.4.1 | lib/danica/wrapper/negative.rb |