Sha256: e1e2731a54e7dca66365035f736ddabdddb1757634775a6fdf4c4d720f53cf39

Contents?: true

Size: 538 Bytes

Versions: 8

Compression:

Stored size: 538 Bytes

Contents

require 'characterizable'

module BrighterPlanet
  module Pet
    module Characterization
      def self.included(base)
        base.send :include, Characterizable
        base.characterize do
          has :species do |species|
            species.reveals :breed
          end
          has :gender
          has :weight, :range => :weight_range.to_proc, :measures => :mass
          has :acquisition # TODO andy test start year
          has :retirement
        end
        base.add_implicit_characteristics
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pet-0.0.10 lib/pet/characterization.rb
pet-0.0.9 lib/pet/characterization.rb
pet-0.0.8 lib/pet/characterization.rb
pet-0.0.7 lib/pet/characterization.rb
pet-0.0.6 lib/pet/characterization.rb
pet-0.0.5 lib/pet/characterization.rb
pet-0.0.4 lib/pet/characterization.rb
pet-0.0.3 lib/pet/characterization.rb