Sha256: 63bd7447d7f9b8ce7d3e2b71dd4a89a091d01697a705193d2b37d00beefe9d79
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 Bytes
Contents
# ========================================================================= # Ceedling - Test-Centered Build System for C # ThrowTheSwitch.org # Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams # SPDX-License-Identifier: MIT # ========================================================================= 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-1.0.1 | vendor/diy/test/files/functions/thing_builder.rb |
ceedling-1.0.0 | vendor/diy/test/files/functions/thing_builder.rb |