Class: Clayoven::ContentPage

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

Instance Attribute Summary collapse

Attributes inherited from Page

#body, #filename, #indexfill, #paragraphs, #permalink, #target, #timestamp, #title, #topic, #topics

Instance Method Summary collapse

Methods inherited from Page

#render

Constructor Details

#initialize(filename) ⇒ ContentPage

Returns a new instance of ContentPage.



58
59
60
61
62
63
64
# File 'lib/clayoven.rb', line 58

def initialize(filename)
  @filename = filename
  @topic, @permalink = @filename.split(":", 2)
  @target = "#{@permalink}.html"
  @indexfill = nil
  @timestamp = when_introduced @filename
end

Instance Attribute Details

#pub_dateObject

Returns the value of attribute pub_date.



56
57
58
# File 'lib/clayoven.rb', line 56

def pub_date
  @pub_date
end