Sha256: 6b8e5ca2831a6dec5688b0e4e8f60548a2e530286662f1123d39358464953f80
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danica-2.7.7 | lib/danica/wrapper/negative.rb |
danica-2.7.6 | lib/danica/wrapper/negative.rb |