Class: ApiGuides::Views::Example
- Inherits:
-
Object
- Object
- ApiGuides::Views::Example
- Includes:
- MarkdownHelper
- Defined in:
- lib/api_guides/views/example.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(example) ⇒ Example
constructor
A new instance of Example.
Methods included from MarkdownHelper
Constructor Details
#initialize(example) ⇒ Example
Returns a new instance of Example.
8 9 10 |
# File 'lib/api_guides/views/example.rb', line 8 def initialize(example) @example = example end |
Instance Method Details
#content ⇒ Object
12 13 14 |
# File 'lib/api_guides/views/example.rb', line 12 def content markdown @example.content end |