Method: UltraSettings::Field#value

Defined in:
lib/ultra_settings/field.rb

#value(env: nil, settings: nil, yaml_config: nil) ⇒ Object

Get the value for the field from the passed in state.

Parameters:

  • env (Hash, nil) (defaults to: nil)

    The environment variables.

  • settings (Hash, nil) (defaults to: nil)

    The runtime settings.

  • yaml_config (Hash, nil) (defaults to: nil)

    The YAML configuration.



54
55
56
# File 'lib/ultra_settings/field.rb', line 54

def value(env: nil, settings: nil, yaml_config: nil)
  fetch_value_and_source(env: env, settings: settings, yaml_config: yaml_config).first
end