Module: Grift::Config

Defined in:
lib/grift/config.rb

Overview

The config for Grift. This is readonly for now.

Class Attribute Summary collapse

Class Attribute Details

.restricted_methodsHash (readonly)

The restricted methods as a hash organized by class as the key and then the methods in an array as the value. A ‘*’ means all methods are restricted. A ‘^’ preceding a method overrides the wildcard restriction.

Examples:

Grift::Config.restricted_methods
#=> { 'Class' => ['method1', ...], ... }

Returns:

  • (Hash)

    the restricted methods organized by class



25
26
27
# File 'lib/grift/config.rb', line 25

def restricted_methods
  @restricted_methods
end