Module: Renee::Core::EnvAccessors

Included in:
Renee::Core
Defined in:
lib/renee_core/env_accessors.rb

Overview

Defines class-level methods for creating accessors for variables in your environment.

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

InvalidEnvName =

Exception for attempting to define an env accessor cannot be written as a method name.

Examples:

env_accessor "current.user" # raises InvalidEnvName
env_accessor "current.user" => :current_user # this works
Class.new(RuntimeError)