Class: Guide::Document
- Inherits:
-
Node
- Object
- Node
- Guide::Document
show all
- Defined in:
- app/models/guide/document.rb
Instance Attribute Summary
Attributes inherited from Node
#id, #options
Instance Method Summary
collapse
Methods inherited from Node
#==, child_node_class, #child_nodes, contains, #image_path, inherited, #initialize, #leaf_node?, #name, #node_type, #view_model
Constructor Details
This class inherits a constructor from Guide::Node
Instance Method Details
#can_be_rendered? ⇒ Boolean
17
18
19
|
# File 'app/models/guide/document.rb', line 17
def can_be_rendered?
true
end
|
#javascripts ⇒ Object
13
14
15
|
# File 'app/models/guide/document.rb', line 13
def javascripts
Guide.configuration.default_javascripts_for_documents
end
|
#partial ⇒ Object
6
7
|
# File 'app/models/guide/document.rb', line 6
def partial
end
|
#stylesheets ⇒ Object
9
10
11
|
# File 'app/models/guide/document.rb', line 9
def stylesheets
Guide.configuration.default_stylesheets_for_documents
end
|
#template ⇒ Object
2
3
4
|
# File 'app/models/guide/document.rb', line 2
def template
partial || self.class.name.underscore
end
|