Class: Faun::Topic
- Inherits:
-
SectionWithMeta
- Object
- Section
- SectionWithMeta
- Faun::Topic
- Defined in:
- lib/faun.rb
Instance Attribute Summary collapse
-
#posts ⇒ Object
readonly
Returns the value of attribute posts.
Attributes inherited from SectionWithMeta
Attributes inherited from Section
Instance Method Summary collapse
-
#initialize(id, name, path) ⇒ Topic
constructor
A new instance of Topic.
- #item_name ⇒ Object
- #subtopic(subid) ⇒ Object
Methods inherited from Section
#each, #each_key, #each_value, #to_json
Constructor Details
Instance Attribute Details
#posts ⇒ Object (readonly)
Returns the value of attribute posts.
103 104 105 |
# File 'lib/faun.rb', line 103 def posts @posts end |
Instance Method Details
#item_name ⇒ Object
117 118 119 |
# File 'lib/faun.rb', line 117 def item_name "chapters" end |
#subtopic(subid) ⇒ Object
113 114 115 |
# File 'lib/faun.rb', line 113 def subtopic(subid) @items[subid] end |