Class: Dimples::Feed

Inherits:
Page
  • Object
show all
Defined in:
lib/dimples/feed.rb

Overview

A single feed.

Instance Attribute Summary

Attributes inherited from Page

#contents, #metadata, #path

Instance Method Summary collapse

Methods inherited from Page

#extension, #filename, #render, #write

Constructor Details

#initialize(site, format) ⇒ Feed

Returns a new instance of Feed.



6
7
8
9
10
11
12
# File 'lib/dimples/feed.rb', line 6

def initialize(site, format)
  super(site)

  self.filename = 'feed'
  self.extension = format
  self.layout = "feeds.#{format}"
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Dimples::Page