Sha256: e45328da1f731d43ff6366a11b83f6b33c6f30c112f93c6cfd5ff0524a456375
Contents?: true
Size: 556 Bytes
Versions: 4
Compression:
Stored size: 556 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(*args) "-#{wrap_as_group(value).to(*args)}" 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.7.4 | lib/danica/wrapper/negative.rb |
danica-2.7.3 | lib/danica/wrapper/negative.rb |
danica-2.7.2 | lib/danica/wrapper/negative.rb |
danica-2.7.1 | lib/danica/wrapper/negative.rb |