Module: DocRepo

Defined in:
lib/doc_repo.rb,
lib/doc_repo/page.rb,
lib/doc_repo/version.rb,
lib/doc_repo/response.rb,
lib/doc_repo/repository.rb,
lib/doc_repo/github_file.rb,
lib/doc_repo/configuration.rb,
lib/doc_repo/converters/markdown_parser.rb

Defined Under Namespace

Modules: Converters Classes: Configuration, GithubFile, NotFound, Page, Repository, Response

Constant Summary collapse

BadPageFormat =
Class.new(StandardError)
VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



20
21
22
# File 'lib/doc_repo.rb', line 20

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



23
24
25
26
# File 'lib/doc_repo.rb', line 23

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
end

.respond_with(slug, &block) ⇒ Object



28
29
30
# File 'lib/doc_repo.rb', line 28

def self.respond_with(slug, &block)
  Repository.new.respond(slug, &block)
end