Class: Blogo::Config
- Inherits:
-
Object
- Object
- Blogo::Config
- Defined in:
- lib/blogo/config.rb
Instance Attribute Summary collapse
-
#disqus_shortname ⇒ Object
Returns the value of attribute disqus_shortname.
-
#github_username ⇒ Object
Returns the value of attribute github_username.
-
#google_analytics_id ⇒ Object
Returns the value of attribute google_analytics_id.
-
#keywords ⇒ Object
Returns the value of attribute keywords.
-
#markup_lang ⇒ Object
Returns the value of attribute markup_lang.
-
#paginator_size ⇒ Object
Returns the value of attribute paginator_size.
-
#posts_per_page ⇒ Object
Returns the value of attribute posts_per_page.
-
#recent_posts ⇒ Object
Returns the value of attribute recent_posts.
-
#show_rss_icon ⇒ Object
Returns the value of attribute show_rss_icon.
-
#site_subtitle ⇒ Object
Returns the value of attribute site_subtitle.
-
#site_title ⇒ Object
Returns the value of attribute site_title.
-
#table_name_prefix ⇒ Object
Returns the value of attribute table_name_prefix.
-
#twitter_username ⇒ Object
Returns the value of attribute twitter_username.
-
#use_ckeditor ⇒ Object
Returns the value of attribute use_ckeditor.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Set default values.
Constructor Details
#initialize ⇒ Config
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_shortname ⇒ Object
Returns the value of attribute disqus_shortname.
14 15 16 |
# File 'lib/blogo/config.rb', line 14 def disqus_shortname @disqus_shortname end |
#github_username ⇒ Object
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_id ⇒ Object
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 |
#keywords ⇒ Object
Returns the value of attribute keywords.
12 13 14 |
# File 'lib/blogo/config.rb', line 12 def keywords @keywords end |
#markup_lang ⇒ Object
Returns the value of attribute markup_lang.
22 23 24 |
# File 'lib/blogo/config.rb', line 22 def markup_lang @markup_lang end |
#paginator_size ⇒ Object
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_page ⇒ Object
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_posts ⇒ Object
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_icon ⇒ Object
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_subtitle ⇒ Object
Returns the value of attribute site_subtitle.
4 5 6 |
# File 'lib/blogo/config.rb', line 4 def site_subtitle @site_subtitle end |
#site_title ⇒ Object
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_prefix ⇒ Object
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_username ⇒ Object
Returns the value of attribute twitter_username.
15 16 17 |
# File 'lib/blogo/config.rb', line 15 def twitter_username @twitter_username end |
#use_ckeditor ⇒ Object
Returns the value of attribute use_ckeditor.
20 21 22 |
# File 'lib/blogo/config.rb', line 20 def use_ckeditor @use_ckeditor end |