Class: GDK::Config

Inherits:
ConfigSettings show all
Defined in:
lib/gdk/config.rb

Direct Known Subclasses

ConfigExample

Constant Summary collapse

GDK_ROOT =
Pathname.new(__dir__).parent.parent
FILE =
File.join(GDK_ROOT, 'gdk.yml')

Constants inherited from ConfigSettings

GDK::ConfigSettings::LooseFile, GDK::ConfigSettings::SettingUndefined, GDK::ConfigSettings::UnsupportedConfiguration, GDK::ConfigSettings::YamlModified

Instance Attribute Summary

Attributes inherited from ConfigSettings

#key, #parent, #yaml

Instance Method Summary collapse

Methods inherited from ConfigSettings

#[], anything, array, bool, #bury!, #bury_multiple!, #config_file_protected?, #dig, #dump!, #dump_as_yaml, #fetch, #find_executable!, hash_setting, #initialize, #inspect, integer, load_from_file, #method_missing, path, port, #port_manager, #read!, #respond_to_missing?, #root, settings, settings_array, #settings_klass, #slug, string, #to_s, #user_defined?, #validate!

Constructor Details

This class inherits a constructor from GDK::ConfigSettings

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GDK::ConfigSettings

Instance Method Details

#gdk_rootObject



37
38
39
# File 'lib/gdk/config.rb', line 37

def gdk_root
  Pathname.new(self.class::GDK_ROOT)
end