class Directive::Reader
Attributes
config[R]
Public Class Methods
new(config)
click to toggle source
# File lib/directive/reader.rb, line 7 def initialize(config) @config = config end
Public Instance Methods
config_eval(*path)
click to toggle source
# File lib/directive/reader.rb, line 11 def config_eval(*path) Evaluator.new(path, self) end
Private Instance Methods
method_missing(method_name, *)
click to toggle source
Calls superclass method
# File lib/directive/reader.rb, line 19 def method_missing(method_name, *) return mutex.synchronize { config.public_send(method_name) } if config._options.include?(method_name) return config._nested_builders[method_name].reader if config._nested_builders.key?(method_name) super end
mutex()
click to toggle source
# File lib/directive/reader.rb, line 32 def mutex @mutex ||= Mutex.new end
respond_to_missing?(method_name, *)
click to toggle source
Calls superclass method
# File lib/directive/reader.rb, line 26 def respond_to_missing?(method_name, *) config._options.include?(method_name) || config._nested_builders.key?(method_name) || super end
stringable_attributes()
click to toggle source
# File lib/directive/reader.rb, line 36 def stringable_attributes config._options + config._nested_options end