Sha256: 7ce29aba564986e1d7a818c0263367aa18e9614a9ed370b7a8d23f237f9585db

Contents?: true

Size: 291 Bytes

Versions: 38

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

require './spec/support/models/default_value_builder'

module DefaultValueable
  def default_reader(*methods, value:, accept_nil: false)
    DefaultValueBuilder.new(
      self, value: value, accept_nil: accept_nil
    ).add_default_values(*methods)
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
sinclair-1.6.7 spec/support/models/default_valueable.rb
sinclair-1.6.6 spec/support/models/default_valueable.rb
sinclair-1.6.5 spec/support/models/default_valueable.rb
sinclair-1.6.4 spec/support/models/default_valueable.rb
sinclair-1.6.3 spec/support/models/default_valueable.rb
sinclair-1.6.2 spec/support/models/default_valueable.rb
sinclair-1.6.1 spec/support/models/default_valueable.rb
sinclair-1.6.0 spec/support/models/default_valueable.rb
sinclair-1.5.2 spec/support/models/default_valueable.rb
sinclair-1.5.1 spec/support/models/default_valueable.rb
sinclair-1.5.0 spec/support/models/default_valueable.rb
sinclair-1.4.2 spec/support/models/default_valueable.rb
sinclair-1.4.1 spec/support/models/default_valueable.rb
sinclair-1.4.0 spec/support/models/default_valueable.rb
sinclair-1.3.4 spec/support/models/default_valueable.rb
sinclair-1.3.3 spec/support/models/default_valueable.rb
sinclair-1.3.2 spec/support/models/default_valueable.rb
sinclair-1.3.1 spec/support/models/default_valueable.rb