Sha256: 3f15e40860fe0cf4be070f6edde369f9d391d444bdf10d3a8cd866d813ec2b81

Contents?: true

Size: 561 Bytes

Versions: 10

Compression:

Stored size: 561 Bytes

Contents

require "blogit/configuration"
require "blogit/blogs"
require "blogit/engine"
require "blogit/parsers"
require "validators"

module Blogit
  
  # Exception raised when gem may not be configured properly
  class ConfigurationError < StandardError;end
  
  # Set global configuration options for Blogit
  # @see README.md
  def self.configure(&block)
    block.call(configuration)
  end
  
  # Returns Blogit's globalconfiguration. Will initialize a new instance
  # if not already set
  def self.configuration
    @configuration ||= Configuration.new
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
blogit-0.0.13 lib/blogit.rb
blogit-0.0.12 lib/blogit.rb
blogit-0.0.11 lib/blogit.rb
blogit-0.0.10 lib/blogit.rb
blogit-0.0.9 lib/blogit.rb
blogit-0.0.8 lib/blogit.rb
blogit-0.0.7 lib/blogit.rb
blogit-0.0.6 lib/blogit.rb
blogit-0.0.5 lib/blogit.rb
blogit-0.0.4 lib/blogit.rb