attentive/lib/attentive.rb

36 lines
646 B
Ruby

require "attentive/version"
module Attentive
autoload :Server, 'attentive/server'
autoload :Export, 'attentive/export'
class << self
attr_accessor :title, :has_presentation, :use_pygments_command_line
def has_presentation?
@has_presentation == true
end
def use_pygments_command_line?
(@use_pygments_command_line ||= true) == true
end
def middleware
@middleware ||= []
end
end
def self.configure
yield self
Attentive.has_presentation = true
end
def self.root
Pathname(File.expand_path('../..', __FILE__))
end
class NoPresentationError < StandardError ; end
end