Class: Objc2SwiftAssistant::Settings
- Inherits:
-
Object
- Object
- Objc2SwiftAssistant::Settings
- Defined in:
- lib/objc2swift_assistant/settings_file.rb
Instance Attribute Summary collapse
-
#file_hash ⇒ Object
Returns the value of attribute file_hash.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#global_settings ⇒ Object
Returns the value of attribute global_settings.
-
#settings_by_path ⇒ Object
Returns the value of attribute settings_by_path.
Instance Method Summary collapse
-
#initialize(path, root_path) ⇒ Settings
constructor
A new instance of Settings.
- #load_settings ⇒ Object
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_hash ⇒ Object
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_path ⇒ Object
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_settings ⇒ Object
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_path ⇒ Object
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_settings ⇒ Object
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 |