attentive/lib/attentive.rb

36 lines
646 B
Ruby
Raw Normal View History

2012-02-09 22:05:12 +00:00
require "attentive/version"
module Attentive
autoload :Server, 'attentive/server'
2012-03-24 12:39:01 +00:00
autoload :Export, 'attentive/export'
2012-02-09 22:05:12 +00:00
class << self
2012-03-23 19:43:00 +00:00
attr_accessor :title, :has_presentation, :use_pygments_command_line
def has_presentation?
@has_presentation == true
end
2012-02-13 17:10:05 +00:00
2012-03-23 19:43:00 +00:00
def use_pygments_command_line?
(@use_pygments_command_line ||= true) == 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