class Blogo::Config

Attributes

disqus_shortname[RW]
github_username[RW]
google_analytics_id[RW]
keywords[RW]
markup_lang[R]
paginator_size[RW]
posts_per_page[RW]
recent_posts[RW]
show_rss_icon[RW]
site_subtitle[RW]
site_title[RW]
table_name_prefix[RW]
twitter_username[RW]
use_ckeditor[RW]

Public Class Methods

new() click to toggle source

Set default values.

# File lib/blogo/config.rb, line 25
def initialize
  @site_title          = 'Blogo'
  @site_subtitle       = 'Mountable blog engine for Ruby on Rails'
  @table_name_prefix   = 'blogo_'
  @posts_per_page      = 10
  @paginator_size      = 5
  @recent_posts        = 5
  @disqus_shortname    = nil
  @google_analytics_id = nil
  @use_ckeditor        = true
  @keywords            = %w(blog)
  @markup_lang         = :html
  @show_rss_icon       = true
end

Public Instance Methods

markup_lang=(lang) click to toggle source
# File lib/blogo/config.rb, line 40
def markup_lang=(lang)
  # Try to find a renderer for the format otherwise raise
  Blogo::Renderer.get(lang.to_sym)
  @format = lang.to_sym
end