Module: ND::Enum::Configuration

Included in:
ND::Enum
Defined in:
lib/nd/enum/configuration.rb

Defined Under Namespace

Classes: Configuration

Constant Summary collapse

DEFAULT_CONFIGURATION =
{
  default_i18n_validation_mode: :ignore,
  default_i18n_scope: :base,
}

Instance Method Summary collapse

Instance Method Details

#configurationObject



10
11
12
# File 'lib/nd/enum/configuration.rb', line 10

def configuration
  @_configuration ||= Configuration.new(*DEFAULT_CONFIGURATION.values_at(*Configuration.members))
end

#configure {|configuration| ... } ⇒ Object

Yields:



14
15
16
# File 'lib/nd/enum/configuration.rb', line 14

def configure
  yield(configuration)
end