module Configuration

Public Instance Methods

from_json(file_path) click to toggle source
# File lib/rebo/config.rb, line 2
def from_json(file_path)
  require 'json'
  JSON.parse(File.read(file_path))
end
read() click to toggle source
# File lib/rebo/config.rb, line 7
def read()
  File.file?(NPM_FILE) ? from_json(NPM_FILE) : {}
end