Sha256: 22cb69c887c437e8ac7e88bd06048bb8e683419814a1158355dbab1c7b54f611
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
# frozen_string_literal: true module Danica class Wrapper::PlusMinus 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(**options) "\\pm #{wrap_as_group(value).to_tex(options)}" end def to_gnu(**options) "+ #{wrap_as_group(value).to_gnu(options)}" end def ==(other) return false unless other.class == self.class value == other.value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danica-2.7.5 | lib/danica/wrapper/plus_minus.rb |