class Directive::Evaluator

Attributes

configuration[R]
path[R]

Public Class Methods

new(path, configuration) click to toggle source

@param path [Array<Symbol, String>] A message path for the desired config @param configuration [Directive::Reader]

# File lib/directive/evaluator.rb, line 7
def initialize(path, configuration)
  @path = path
  @configuration = configuration
end

Public Instance Methods

read() click to toggle source
# File lib/directive/evaluator.rb, line 12
def read
  path.inject(configuration, &:public_send)
end