class CC::Config::JSONAdapter
Constants
- DEFAULT_PATH
Attributes
config[R]
Public Class Methods
load(path = DEFAULT_PATH)
click to toggle source
# File lib/cc/config/json_adapter.rb, line 8 def self.load(path = DEFAULT_PATH) new(::JSON.parse(File.open(path).read)) end
new(json = {})
click to toggle source
# File lib/cc/config/json_adapter.rb, line 12 def initialize(json = {}) @config = json end