Sha256: 14d184c93f8c653250c1c75d7cf059d9e6c04cdffedbfaa54e607bd114702759
Contents?: true
Size: 259 Bytes
Versions: 3
Compression:
Stored size: 259 Bytes
Contents
class Fruit attr_accessor :species, :size include Blueprints::Blueprintable def initialize(species, size = 5) @species = species @size = size end private def self.blueprint_object(attrs) new(attrs[:species], attrs[:size]) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blueprints-0.8.2 | spec/no_db/fixtures/fruit.rb |
blueprints-0.8.1 | spec/no_db/fixtures/fruit.rb |
blueprints-0.8.0 | spec/no_db/fixtures/fruit.rb |