Sha256: dbfcd0c038fa5f4494d85b374445bc5b859419ed723bc651810ca75489680000
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
module Danica class Constant include BaseOperations attr_reader :value, :latex, :gnu def initialize(value, latex, gnu) @value = value @latex = latex @gnu = gnu end def to_f value.to_f end def ==(other) return false unless other.class == self.class gnu == other.gnu && latex == other.latex && value == other.value end def to_tex latex.to_s end def to_gnu gnu.to_s end def valued? true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danica-2.0.5 | lib/danica/constant.rb |
danica-2.0.4 | lib/danica/constant.rb |