Sha256: 548ae26c07b1bea00cf21acd393394bbf2fed7957d074b966710da4892db04d8
Contents?: true
Size: 567 Bytes
Versions: 4
Compression:
Stored size: 567 Bytes
Contents
module Danica class Wrapper::Group include Common include BaseOperations attr_accessor :value default_value :priority, 10 default_value :is_grouped?, true delegate :to_f, :valued?, to: :value def initialize(value) @value = wrap_value(value) end def to_tex(**options) "\\left(#{value.to_tex(options)}\\right)" end def to_gnu(**options) "(#{value.to_gnu(options)})" end def ==(other) return value == other unless other.is_a?(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/group.rb |
danica-2.7.3 | lib/danica/wrapper/group.rb |
danica-2.7.2 | lib/danica/wrapper/group.rb |
danica-2.7.1 | lib/danica/wrapper/group.rb |