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

Version Path
ceedling-0.31.1 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.31.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.30.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.28.3 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.28.2 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.28.1 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.27.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.25.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.24.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.22.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.21.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.20.3 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.20.2 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.19.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.18.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.17.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.16.0 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.15.6 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.15.5 vendor/diy/test/files/functions/thing_builder.rb
ceedling-0.15.4 vendor/diy/test/files/functions/thing_builder.rb