Sha256: 7546e31f9aa0b42d69fe6f49225a78d5e01022bf0309e86034e0d9c6f97f7c59
Contents?: true
Size: 760 Bytes
Versions: 3
Compression:
Stored size: 760 Bytes
Contents
module Settingslogic # = Config # Sets configuration on Settingslogic. class Config class << self def configure yield self end # The name of the file that your settings will be stored for singleton access. Meaning the settings file that will be used when calling methods on the class level: # # Settings.setting1 # Settings.setting2 # # etc... # # All that you need to do is specify the name of the file. It will automatically look in the config directory. # # * <tt>Default:</tt> :application # * <tt>Accepts:</tt> Symbol or String def settings_file @settings_file ||= :application end attr_writer :settings_file end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
settingslogic-1.0.1 | lib/settingslogic/config.rb |
settingslogic-0.9.0 | lib/settingslogic/config.rb |
settingslogic-1.0.0 | lib/settingslogic/config.rb |