Class: Octodown::Renderer::GithubMarkdown

Inherits:
Object
  • Object
show all
Includes:
HTML, Renderable
Defined in:
lib/octodown/renderer/github_markdown.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Renderable

included

Constructor Details

#initialize(file, options = {}) ⇒ GithubMarkdown

Returns a new instance of GithubMarkdown.



14
15
16
17
# File 'lib/octodown/renderer/github_markdown.rb', line 14

def initialize(file, options = {})
  @file = file
  @options = options
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



12
13
14
# File 'lib/octodown/renderer/github_markdown.rb', line 12

def content
  @content
end

#fileObject (readonly)

Returns the value of attribute file.



12
13
14
# File 'lib/octodown/renderer/github_markdown.rb', line 12

def file
  @file
end

#optionsObject (readonly)

Returns the value of attribute options.



12
13
14
# File 'lib/octodown/renderer/github_markdown.rb', line 12

def options
  @options
end