attentive/lib/attentive.rb

31 lines
483 B
Ruby
Raw Normal View History

2012-02-09 22:05:12 +00:00
require "attentive/version"
module Attentive
autoload :Server, 'attentive/server'
class << self
attr_accessor :title, :has_presentation
def has_presentation?
@has_presentation == true
end
2012-02-13 17:10:05 +00:00
def middleware
@middleware ||= []
end
2012-02-09 22:05:12 +00:00
end
def self.configure
yield self
Attentive.has_presentation = true
2012-02-09 22:05:12 +00:00
end
def self.root
Pathname(File.expand_path('../..', __FILE__))
end
class NoPresentationError < StandardError ; end
2012-02-09 22:05:12 +00:00
end
2012-02-13 17:10:05 +00:00