Sha256: 2a693ab7d085e5791f9e7660d4e169d8ab8de1a3efa19bec4cfee413c26acf65

Contents?: true

Size: 747 Bytes

Versions: 4

Compression:

Stored size: 747 Bytes

Contents

module Settingslogic
  # 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

4 entries across 4 versions & 2 rubygems

Version Path
binarylogic-settingslogic-1.0.4 lib/settingslogic/config.rb
settingslogic-1.0.4 lib/settingslogic/config.rb
settingslogic-1.0.3 lib/settingslogic/config.rb
settingslogic-1.0.2 lib/settingslogic/config.rb