Class: Prow::Page
- Inherits:
-
Struct
- Object
- Struct
- Prow::Page
- Defined in:
- lib/prow/page.rb
Instance Attribute Summary collapse
-
#config_array ⇒ Object
Returns the value of attribute config_array.
Instance Method Summary collapse
Instance Attribute Details
#config_array ⇒ Object
Returns the value of attribute config_array
2 3 4 |
# File 'lib/prow/page.rb', line 2 def config_array @config_array end |
Instance Method Details
#config ⇒ Object
7 8 9 |
# File 'lib/prow/page.rb', line 7 def config config_array.last end |
#data ⇒ Object
15 16 17 |
# File 'lib/prow/page.rb', line 15 def data config['data'] || {} end |
#file_name ⇒ Object
3 4 5 |
# File 'lib/prow/page.rb', line 3 def file_name config_array.first end |
#layout ⇒ Object
11 12 13 |
# File 'lib/prow/page.rb', line 11 def layout config['layout'] || 'default' end |
#name ⇒ Object
19 20 21 |
# File 'lib/prow/page.rb', line 19 def name file_name.split('.').first end |