class ConfigLoader::Json
Public Class Methods
new(file_path, options = {})
click to toggle source
Calls superclass method
ConfigLoader::Base::new
# File lib/config_loader/json.rb, line 5 def initialize file_path, options = {} file_path = "#{file_path}.json" unless path?(file_path) super file_path, options end
Public Instance Methods
content()
click to toggle source
# File lib/config_loader/json.rb, line 10 def content @content ||= JSON.parse file_content.read end
reg_ext_format()
click to toggle source
# File lib/config_loader/json.rb, line 14 def reg_ext_format 'json' end