Class: Page

Inherits:
Object
  • Object
show all
Defined in:
lib/models/page.rb

Overview

An object repsenting a page on a Jekyll website

Instance Attribute Summary collapse

Instance Attribute Details

#contentsObject

Returns the value of attribute contents.



8
9
10
# File 'lib/models/page.rb', line 8

def contents
  @contents
end

#github_refObject

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

Returns the value of attribute permalink.



7
8
9
# File 'lib/models/page.rb', line 7

def permalink
  @permalink
end

#pull_request_urlObject

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

#titleObject

Returns the value of attribute title.



6
7
8
# File 'lib/models/page.rb', line 6

def title
  @title
end