# Class LittleGhost::Sandbox::EnvironmentPolicy

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Sandbox/EnvironmentPolicy.html

Declares whether a child inherits the host environment and which explicit
values are added or replaced.

## Inheritance

`LittleGhost::Sandbox::EnvironmentPolicy < Object`

## Attributes

<a id="attribute-i-values"></a>
### `values` (R)

Explicit child environment values.

## Class methods

<a id="method-c-coerce"></a>
### `.coerce`

```ruby
.coerce(value)
```

Returns `value` unchanged or builds a policy from a Hash.

<a id="method-c-new"></a>
### `.new`

```ruby
.new(inherit: false, values: {})
```

Builds an environment policy with explicit String-compatible `values`.

## Instance methods

<a id="method-i-inherit-3F"></a>
### `#inherit?`

```ruby
#inherit?()
```

Indicates whether configured backends may inherit host values.

<a id="method-i-to_h"></a>
### `#to_h`

```ruby
#to_h()
```

Returns the explicit child environment values.
