Sha256: fb73e78015db2ff5d5a103afccd0b934e920c7628f00c7094b59b27348a0467c

Contents?: true

Size: 287 Bytes

Versions: 16

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

class Sinclair
  class DummyClassBuilder < Sinclair
    def init
      add_class_method(:blocked) { 1 }
      add_class_method(:defined, "@value = value + #{options_object&.increment || 1}")
      add_class_method(:value, '@value ||= 0')
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sinclair-1.10.0 spec/support/models/dummy_class_builder.rb
sinclair-1.9.0 spec/support/models/dummy_class_builder.rb
sinclair-1.8.0 spec/support/models/dummy_class_builder.rb
sinclair-1.7.0 spec/support/models/dummy_class_builder.rb
sinclair-1.6.7 spec/support/models/dummy_class_builder.rb
sinclair-1.6.6 spec/support/models/dummy_class_builder.rb
sinclair-1.6.5 spec/support/models/dummy_class_builder.rb
sinclair-1.6.4 spec/support/models/dummy_class_builder.rb
sinclair-1.6.3 spec/support/models/dummy_class_builder.rb
sinclair-1.6.2 spec/support/models/dummy_class_builder.rb
sinclair-1.6.1 spec/support/models/dummy_class_builder.rb
sinclair-1.6.0 spec/support/models/dummy_class_builder.rb
sinclair-1.5.2 spec/support/models/dummy_class_builder.rb
sinclair-1.5.1 spec/support/models/dummy_class_builder.rb
sinclair-1.5.0 spec/support/models/dummy_class_builder.rb
sinclair-1.4.2 spec/support/models/dummy_class_builder.rb