Sha256: 93b409ec4ca2b9fee6423742a6ef532cafb96f03d47df4c148b9f664b123c0bd

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true
module WannabeBool::Configuration
  def invalid_value_behaviour=(behaviour)
    raise ArgumentError, 'behaviour does not respond to call method' unless behaviour.respond_to?(:call)

    @invalid_value_behaviour = behaviour
  end

  def invalid_value_behaviour
    @invalid_value_behaviour ||= WannabeBool::InvalidValueBehaviour::False
  end
end

module WannabeBool
  extend WannabeBool::Configuration
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wannabe_bool-0.7.1 lib/wannabe_bool/configuration.rb