Method: OakTree::Specification#initialize
- Defined in:
- lib/oaktree/specification.rb
#initialize {|_self| ... } ⇒ Specification
Initializes the Specification with its default values.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/oaktree/specification.rb', line 109 def initialize # initialize default values for most properties self.title = '' self.description = '' self.base_url = '' self.post_path = 'post/' self. = '' self.posts_per_page = 10 self.reversed = false self.date_path_format = self.class.default_date_path_format self.slug_separator = self.class.default_slug_separator self.rss_length = 20 yield self if block_given? @blog_root = File.(Dir.getwd) + '/' end |