Sha256: 633bf9dd9fb4bf7de31480c1bd5269a2159d3f88ed674c9fde32d3b624913b69

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

require 'crumpet/configuration'
require 'crumpet/crumb'
require 'crumpet/controller_additions'
require 'crumpet/railtie'
require 'crumpet/renderer'
require 'crumpet/repository'
require 'crumpet/version'
require 'crumpet/view_helpers'

module Crumpet
  module_function def config
    @config ||= Crumpet::Configuration.new
  end

  module_function def crumbs
    @crumbs ||= Crumpet::Repository.new
  end

  def self.render(options = {})
    Crumpet::Renderer.new(options).render
  end

  def self.configure
    yield config
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
crumpet-0.2.1 lib/crumpet.rb
crumpet-0.2.0 lib/crumpet.rb
crumpet-0.1.2 lib/crumpet.rb