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