Module: YAMLSettings::AttrReader

Defined in:
lib/yaml_settings.rb

Overview

:nodoc:

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(setting) ⇒ Object (private)



9
10
11
# File 'lib/yaml_settings.rb', line 9

def method_missing(setting)
  has_key?(setting) ? fetch(setting) : fetch(setting.to_s) # raises KeyError
end