Sha256: d5fd69ff3a72f3a3f1a1f2a1eb1e75309092a598c6e539c2f43e42cae6a57e08
Contents?: true
Size: 326 Bytes
Versions: 2
Compression:
Stored size: 326 Bytes
Contents
class Quantity attr_reader :label def initialize(quantity) @label = quantity end def opposite if self.label == 'universal' quantityopposite = Quantity.new('particular') elsif self.label == 'particular' quantityopposite = Quantity.new('universal') end return quantityopposite end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
catlogic-0.0.2 | lib/catlogic/quantity.rb |
catlogic-0.0.1 | lib/catlogic/quantity.rb |