Class: Nenv::Environment::Loader

### Home Classes Methods

### In Files

- lib/nenv/environment/loader.rb

### Parent

Object

### Methods

- ::new
- #load

### Class/Module Index

Quicksearch

- Nenv
- Nenv::AutoEnvironment
- Nenv::Builder
- Nenv::Environment
- Nenv::Environment::AlreadyExistsError
- Nenv::Environment::Dumper
- Nenv::Environment::Error
- Nenv::Environment::Loader
- Nenv::Environment::MethodError
- Object

No matching classes.

# Nenv::Environment::Loader

### Public Class Methods

new(meth) click to toggle source

    # File lib/nenv/environment/loader.rb, line 4
    def initialize(meth)
      @bool = meth.to_s.end_with?('?')
    end

### Public Instance Methods

load(raw_value, &callback) click to toggle source

    # File lib/nenv/environment/loader.rb, line 8
    def load(raw_value, &callback)
      return callback.call(raw_value) if callback
      @bool ? _to_bool(raw_value) : raw_value
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.