Class: ApiGuides::Views::Reference
- Inherits:
-
Object
- Object
- ApiGuides::Views::Reference
- Includes:
- MarkdownHelper, ApiGuides::ViewHelper
- Defined in:
- lib/api_guides/views/reference.rb
Instance Method Summary collapse
- #content ⇒ Object
- #id ⇒ Object
-
#initialize(reference) ⇒ Reference
constructor
A new instance of Reference.
- #title ⇒ Object
Methods included from ApiGuides::ViewHelper
Methods included from MarkdownHelper
Constructor Details
#initialize(reference) ⇒ Reference
Returns a new instance of Reference.
9 10 11 |
# File 'lib/api_guides/views/reference.rb', line 9 def initialize(reference) @reference = reference end |
Instance Method Details
#content ⇒ Object
21 22 23 |
# File 'lib/api_guides/views/reference.rb', line 21 def content markdown @reference.content end |
#id ⇒ Object
13 14 15 |
# File 'lib/api_guides/views/reference.rb', line 13 def id anchorize "r-#{@reference.title}" end |
#title ⇒ Object
17 18 19 |
# File 'lib/api_guides/views/reference.rb', line 17 def title @reference.title end |