Class: SatanicPages::Page
- Inherits:
-
Object
- Object
- SatanicPages::Page
- Defined in:
- lib/satanic_pages/page.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#full_path ⇒ Object
readonly
Returns the value of attribute full_path.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(full_path, base_path) ⇒ Page
constructor
A new instance of Page.
Constructor Details
#initialize(full_path, base_path) ⇒ Page
Returns a new instance of Page.
5 6 7 8 9 10 11 12 13 |
# File 'lib/satanic_pages/page.rb', line 5 def initialize(full_path, base_path) @full_path = full_path @base_path = base_path @path = nil @slug = nil @content = nil @data = nil parse! end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
15 16 17 |
# File 'lib/satanic_pages/page.rb', line 15 def content @content end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
15 16 17 |
# File 'lib/satanic_pages/page.rb', line 15 def data @data end |
#full_path ⇒ Object (readonly)
Returns the value of attribute full_path.
15 16 17 |
# File 'lib/satanic_pages/page.rb', line 15 def full_path @full_path end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
15 16 17 |
# File 'lib/satanic_pages/page.rb', line 15 def path @path end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
15 16 17 |
# File 'lib/satanic_pages/page.rb', line 15 def slug @slug end |