module SimplePosts

Constants

VERSION

Attributes

layout[RW]
site_author[RW]
site_title[RW]

Public Class Methods

configure() { |self| ... } click to toggle source
# 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!() click to toggle source
# File lib/simple_posts.rb, line 10
def reset!
  self.site_title = 'Exampleville'
  self.site_author = 'Example Author'
  self.layout = 'application'
end