Class: Gidget::Post
Instance Attribute Summary
Attributes inherited from Page
Instance Method Summary collapse
Methods inherited from Page
#body, #initialize, #method_missing, #title
Constructor Details
This class inherits a constructor from Gidget::Page
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Gidget::Page
Instance Method Details
#date ⇒ Object
11 12 13 |
# File 'lib/gidget/post.rb', line 11 def date @meta_data[:date] end |
#request_path ⇒ Object
6 7 8 |
# File 'lib/gidget/post.rb', line 6 def request_path @meta_data[:permalink] || self.date.strftime("/%Y/%m/") + self.title.slugize end |
#tags ⇒ Object
16 17 18 |
# File 'lib/gidget/post.rb', line 16 def @meta_data[:tags] || "" end |