Class: Clayoven::ContentPage
Instance Attribute Summary collapse
-
#pub_date ⇒ Object
Returns the value of attribute pub_date.
Attributes inherited from Page
#body, #filename, #indexfill, #paragraphs, #permalink, #target, #timestamp, #title, #topic, #topics
Instance Method Summary collapse
-
#initialize(filename) ⇒ ContentPage
constructor
A new instance of ContentPage.
Methods inherited from Page
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_date ⇒ Object
Returns the value of attribute pub_date.
56 57 58 |
# File 'lib/clayoven.rb', line 56 def pub_date @pub_date end |