Module: Write
- Defined in:
- lib/write.rb,
lib/write/engine.rb,
lib/write/version.rb,
app/models/write/gg.rb,
app/helpers/write/application_helper.rb,
app/controllers/write/posts_controller.rb,
app/controllers/write/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper
Classes: ApplicationController, Engine, GG, PostsController, PygmentizeHTML
Constant Summary
collapse
- MD =
Redcarpet::Markdown.new(PygmentizeHTML, :fenced_code_blocks => true, :autolink => true,
:lax_spacing => true, :space_after_headers => true,
:strikethrough => true, :superscript => true)
- VERSION =
"0.2.0"
Class Method Summary
collapse
Class Method Details
.accounts ⇒ Object
10
11
12
13
|
# File 'lib/write.rb', line 10
def self.accounts
accounts = config[:accounts].presence || { "github" => "changeme" }
accounts.is_a?(Hash) ? accounts.keys : accounts
end
|
.admin?(account) ⇒ Boolean
15
16
17
|
# File 'lib/write.rb', line 15
def self.admin? account
accounts.include? account
end
|
.layout ⇒ Object
27
28
29
|
# File 'lib/write.rb', line 27
def self.layout
config[:layout] || "application"
end
|
.tagline ⇒ Object
23
24
25
|
# File 'lib/write.rb', line 23
def self.tagline
config[:tagline] || "Blog using github gists as your data store"
end
|
.title ⇒ Object
19
20
21
|
# File 'lib/write.rb', line 19
def self.title
config[:title] || "A Write Blog"
end
|