Sha256: 4e36bd56273fe1cc286afa088d30bd307ff7977a042480d9cece996872559d14
Contents?: true
Size: 558 Bytes
Versions: 4
Compression:
Stored size: 558 Bytes
Contents
module Danica class Wrapper::Negative include BaseOperations include VariablesHolder attr_accessor :value default_value :priority, 2 default_value :is_grouped?, false default_value :signaled?, true delegate :valued?, to: :value def initialize(value) @value = wrap_value(value) end def to_f -value.to_f end def to(format) "-#{wrap_as_group(value).to(format)}" end def ==(other) return false unless other.class == self.class value == other.value end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
danica-2.6.4 | lib/danica/wrapper/negative.rb |
danica-2.6.3 | lib/danica/wrapper/negative.rb |
danica-2.6.2 | lib/danica/wrapper/negative.rb |
danica-2.6.1 | lib/danica/wrapper/negative.rb |