Sha256: 20f9a4c42df05c64b9c7faa291c0d00709e21cbada6c610d13cb065477adf4d5
Contents?: true
Size: 577 Bytes
Versions: 5
Compression:
Stored size: 577 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 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
5 entries across 5 versions & 1 rubygems