Method: RBT.set_system_settings_directory
- Defined in:
- lib/rbt/toplevel_methods/files_and_directories_related_methods.rb
.set_system_settings_directory(i = '/System/Settings/') ⇒ Object
#
RBT.set_system_settings_directory
#
1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 |
# File 'lib/rbt/toplevel_methods/files_and_directories_related_methods.rb', line 1122 def self.set_system_settings_directory( i = '/System/Settings/' ) i = i.dup if i.frozen? require 'rbt/toplevel_methods/convert_global_env.rb' i = convert_global_env(i) if i.include? '$' # ======================================================================= # # If there is still at the least one '$' entry then this variable does # not exist. In this case, use a hardcoded entry instead. # ======================================================================= # i = '/System/Settings/' if i.include? '$' # <- See above for the explanation. i << '/' unless i.end_with? '/' i = i.dup if i.frozen? # <- Need to do so again, e. g. in a .cgi environment context. i.squeeze!('/') @system_settings_directory = i end |