Class: Blogo::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/blogo/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Set default values.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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

Instance Attribute Details

#disqus_shortnameObject

Returns the value of attribute disqus_shortname.



14
15
16
# File 'lib/blogo/config.rb', line 14

def disqus_shortname
  @disqus_shortname
end

#github_usernameObject

Returns the value of attribute github_username.



16
17
18
# File 'lib/blogo/config.rb', line 16

def github_username
  @github_username
end

#google_analytics_idObject

Returns the value of attribute google_analytics_id.



18
19
20
# File 'lib/blogo/config.rb', line 18

def google_analytics_id
  @google_analytics_id
end

#keywordsObject

Returns the value of attribute keywords.



12
13
14
# File 'lib/blogo/config.rb', line 12

def keywords
  @keywords
end

#markup_langObject

Returns the value of attribute markup_lang.



22
23
24
# File 'lib/blogo/config.rb', line 22

def markup_lang
  @markup_lang
end

#paginator_sizeObject

Returns the value of attribute paginator_size.



9
10
11
# File 'lib/blogo/config.rb', line 9

def paginator_size
  @paginator_size
end

#posts_per_pageObject

Returns the value of attribute posts_per_page.



8
9
10
# File 'lib/blogo/config.rb', line 8

def posts_per_page
  @posts_per_page
end

#recent_postsObject

Returns the value of attribute recent_posts.



10
11
12
# File 'lib/blogo/config.rb', line 10

def recent_posts
  @recent_posts
end

#show_rss_iconObject

Returns the value of attribute show_rss_icon.



17
18
19
# File 'lib/blogo/config.rb', line 17

def show_rss_icon
  @show_rss_icon
end

#site_subtitleObject

Returns the value of attribute site_subtitle.



4
5
6
# File 'lib/blogo/config.rb', line 4

def site_subtitle
  @site_subtitle
end

#site_titleObject

Returns the value of attribute site_title.



3
4
5
# File 'lib/blogo/config.rb', line 3

def site_title
  @site_title
end

#table_name_prefixObject

Returns the value of attribute table_name_prefix.



6
7
8
# File 'lib/blogo/config.rb', line 6

def table_name_prefix
  @table_name_prefix
end

#twitter_usernameObject

Returns the value of attribute twitter_username.



15
16
17
# File 'lib/blogo/config.rb', line 15

def twitter_username
  @twitter_username
end

#use_ckeditorObject

Returns the value of attribute use_ckeditor.



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

def use_ckeditor
  @use_ckeditor
end