Class: Page
- Inherits:
-
Object
- Object
- Page
- Defined in:
- lib/models/page.rb
Overview
An object repsenting a page on a Jekyll website
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#github_ref ⇒ Object
The GitHub ref the page’s markdown is at.
-
#permalink ⇒ Object
Returns the value of attribute permalink.
-
#pull_request_url ⇒ Object
Returns the value of attribute pull_request_url.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
8 9 10 |
# File 'lib/models/page.rb', line 8 def contents @contents end |
#github_ref ⇒ Object
The GitHub ref the page’s markdown is at. This is used to indicate whether a page is in PR or not
11 12 13 |
# File 'lib/models/page.rb', line 11 def github_ref @github_ref end |
#permalink ⇒ Object
Returns the value of attribute permalink.
7 8 9 |
# File 'lib/models/page.rb', line 7 def permalink @permalink end |
#pull_request_url ⇒ Object
Returns the value of attribute pull_request_url.
12 13 14 |
# File 'lib/models/page.rb', line 12 def pull_request_url @pull_request_url end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/models/page.rb', line 6 def title @title end |