Sha256: c1fca1c38d44ab91d0c04971381e2c98e7dc0aace5e08053240df460f8c904fa

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 Bytes

Contents

class Renee
  class Core
    ##
    # Stores configuration settings for a particular Renee application.
    # Powers the Renee setup block which is instance eval'ed into this object.
    #
    # @example
    #  Renee::Core.new { ... }.setup { views_path "./views" }
    #
    class Settings
      attr_reader :includes
      def initialize
        @includes = []
      end

      # Get or sets the views_path for an application.
      #
      # @param [String] path The path to the view files.
      #
      # @example
      #  views_path("./views") => nil
      #  views_path => "./views"
      #
      # @api public
      def views_path(path = nil)
        path ? @views_path = path : @views_path
      end

      def include(mod)
        includes << mod
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
renee-core-0.0.1 lib/renee-core/settings.rb