Browse code

Moved instance variables to constructor

Cinan Rakosnik authored on 15/12/2012 at 21:48:04
Showing 2 changed files
... ...
@@ -9,12 +9,10 @@ module Rubysermon
9 9
 
10 10
 	class App
11 11
 
12
-		@config_path = "#{APP_PATH}/config.json"
13
-		@config
14
-		@loader
15
-
16 12
 		def initialize
17
-
13
+			@config = ""
14
+			@loader = nil
15
+			@config_path = "#{APP_PATH}/config.json"
18 16
 		end
19 17
 
20 18
 		private
... ...
@@ -3,8 +3,6 @@ require 'json'
3 3
 module Rubysermon
4 4
 	class Configurator
5 5
 
6
-		@parsed_settings
7
-
8 6
 		def initialize(config_path)
9 7
 			raw_json = File.read(config_path)
10 8
 			@parsed_settings = JSON.parse(raw_json, symbolize_names: true)