class ConfigLoader::Yaml
Public Class Methods
new(file_path, options = {})
click to toggle source
Calls superclass method
ConfigLoader::Base::new
# File lib/config_loader/yaml.rb, line 5 def initialize file_path, options = {} default_ext = options[:default_ext] || 'yml' file_path = "#{file_path}.#{default_ext}" unless path?(file_path) super file_path, options end
Public Instance Methods
content()
click to toggle source
# File lib/config_loader/yaml.rb, line 11 def content @content ||= ::YAML.load file_content end
Protected Instance Methods
reg_ext_format()
click to toggle source
# File lib/config_loader/yaml.rb, line 17 def reg_ext_format 'ya?ml' end