Sha256: 9ea6cacecabbc9711a7f97ca2ed5c301d40996c76cc0409c1ddf9b6273aeda9a
Contents?: true
Size: 526 Bytes
Versions: 5
Compression:
Stored size: 526 Bytes
Contents
module Danica class Group include Common include ActiveModel::Model 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 "\\left(#{value.to_tex}\\right)" end def to_gnu "(#{value.to_gnu})" end def ==(other) return value == other unless other.is_a?(self.class) value == other.value end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
danica-2.2.1 | lib/danica/group.rb |
danica-2.2.0 | lib/danica/group.rb |
danica-2.1.1 | lib/danica/group.rb |
danica-2.1.0 | lib/danica/group.rb |
danica-2.0.6 | lib/danica/group.rb |