Class: ApiGuides::Views::Example

Inherits:
Object
  • Object
show all
Includes:
MarkdownHelper
Defined in:
lib/api_guides/views/example.rb

Instance Method Summary collapse

Methods included from MarkdownHelper

#left_align, #markdown

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

#contentObject



12
13
14
# File 'lib/api_guides/views/example.rb', line 12

def content
  markdown @example.content
end