Class: Objc2SwiftAssistant::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/objc2swift_assistant/settings_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, root_path) ⇒ Settings

Returns a new instance of Settings.



12
13
14
# File 'lib/objc2swift_assistant/settings_file.rb', line 12

def initialize( path, root_path )

end

Instance Attribute Details

#file_hashObject

Returns the value of attribute file_hash.



7
8
9
# File 'lib/objc2swift_assistant/settings_file.rb', line 7

def file_hash
  @file_hash
end

#file_pathObject

Returns the value of attribute file_path.



6
7
8
# File 'lib/objc2swift_assistant/settings_file.rb', line 6

def file_path
  @file_path
end

#global_settingsObject

Returns the value of attribute global_settings.



9
10
11
# File 'lib/objc2swift_assistant/settings_file.rb', line 9

def global_settings
  @global_settings
end

#settings_by_pathObject

Returns the value of attribute settings_by_path.



10
11
12
# File 'lib/objc2swift_assistant/settings_file.rb', line 10

def settings_by_path
  @settings_by_path
end

Instance Method Details

#load_settingsObject



16
17
18
19
# File 'lib/objc2swift_assistant/settings_file.rb', line 16

def load_settings
  file_contents = @file_path.read()
  @file_hash = JSON.parse(file_contents)
end