Sha256: 554ce842de55911d0987867be83ff8fe9e8860d076026aaed4168fe4d6d03e4d
Contents?: true
Size: 402 Bytes
Versions: 30
Compression:
Stored size: 402 Bytes
Contents
require 'thing' class ThingBuilder @@builder_count = 0 def self.reset_builder_count @@builder_count = 0 end def self.builder_count @@builder_count end def initialize @@builder_count += 1 end def build(name, ability) Thing.new(:name => name, :ability => ability) end def build_default Thing.new(:name => "Thing", :ability => "nothing") end end
Version data entries
30 entries across 30 versions & 2 rubygems