Module: SimplePosts
- Defined in:
- lib/simple_posts.rb,
lib/simple_posts/posts.rb,
lib/simple_posts/engine.rb,
lib/simple_posts/version.rb,
app/helpers/simple_posts/application_helper.rb,
app/controllers/simple_posts/posts_controller.rb,
app/controllers/simple_posts/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper Classes: ApplicationController, Engine, HTMLwithHighlights, Post, Posts, PostsController
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.layout ⇒ Object
Returns the value of attribute layout.
-
.site_author ⇒ Object
Returns the value of attribute site_author.
-
.site_title ⇒ Object
Returns the value of attribute site_title.
Class Method Summary collapse
Class Attribute Details
.layout ⇒ Object
Returns the value of attribute layout.
6 7 8 |
# File 'lib/simple_posts.rb', line 6 def layout @layout end |
.site_author ⇒ Object
Returns the value of attribute site_author.
6 7 8 |
# File 'lib/simple_posts.rb', line 6 def @site_author end |
.site_title ⇒ Object
Returns the value of attribute site_title.
6 7 8 |
# File 'lib/simple_posts.rb', line 6 def site_title @site_title end |
Class Method Details
.configure(&block) ⇒ Object
16 17 18 19 |
# File 'lib/simple_posts.rb', line 16 def configure(&block) raise ArgumentError, "must provide a block" unless block_given? block.arity.zero? ? instance_eval(&block) : yield(self) end |
.reset! ⇒ Object
10 11 12 13 14 |
# File 'lib/simple_posts.rb', line 10 def reset! self.site_title = 'Exampleville' self. = 'Example Author' self.layout = 'application' end |