Class: Smithy::Site
- Inherits:
-
Object
- Object
- Smithy::Site
- Includes:
- Singleton
- Defined in:
- app/models/smithy/site.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.title ⇒ Object
7 8 9 |
# File 'app/models/smithy/site.rb', line 7 def title @@title end |
.title=(str) ⇒ Object
11 12 13 |
# File 'app/models/smithy/site.rb', line 11 def title=(str) @@title = str end |
Instance Method Details
#root ⇒ Object
20 21 22 |
# File 'app/models/smithy/site.rb', line 20 def root @root ||= Smithy::Page.root end |
#title ⇒ Object
16 17 18 |
# File 'app/models/smithy/site.rb', line 16 def title self.class.title end |
#to_liquid ⇒ Object
24 25 26 27 28 29 |
# File 'app/models/smithy/site.rb', line 24 def to_liquid { 'title' => self.title, 'root' => self.root.to_liquid } end |