Method: VimMate::Config#initialize

Defined in:
lib/vim_mate/config.rb

#initializeConfig

Create the Config class. Cannot be called directly



70
71
72
73
74
75
76
77
78
79
# File 'lib/vim_mate/config.rb', line 70

def initialize
  # Set the full path to the configuration file. In the user's
  # HOME or the current directory
  if ENV['HOME']
    self.class.const_set(:FILENAME, File.join(ENV['HOME'], BASE_FILENAME))
  else
    self.class.const_set(:FILENAME, BASE_FILENAME)
  end
  @config = DEFAULT_CONFIG.dup
end