class Nicht::Settings
Constants
- FILENAME
Public Class Methods
new(path)
click to toggle source
# File lib/nicht/settings.rb, line 5 def initialize(path) @path = File.expand_path path end
Public Instance Methods
get_path()
click to toggle source
# File lib/nicht/settings.rb, line 9 def get_path raise Nicht::SettingsNotFound unless File.exist? @path projects_path = File.expand_path(File.read(@path)) raise Nicht::SettingsNotValid unless File.exist? projects_path projects_path end