Class: Harrison::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/harrison/config.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Config

Returns a new instance of Config.



3
4
5
6
7
# File 'lib/harrison/config.rb', line 3

def initialize(opts={})
  self.class.config_keys.each do |key|
    self.class.send(:attr_accessor, key)
  end
end

Class Method Details

.config_keysObject



9
10
11
12
13
14
# File 'lib/harrison/config.rb', line 9

def self.config_keys
  [
    :project,
    :git_src,
  ]
end