Sha256: a6078f1dfcb4a6e4f0a5969ee21d2f72298354944d4d2c30a8a82c90160d5d22
Contents?: true
Size: 638 Bytes
Versions: 5
Compression:
Stored size: 638 Bytes
Contents
module Danica class Wrapper::PlusMinus 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_tex "\\pm #{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
5 entries across 5 versions & 1 rubygems