Class: CodeHighlighter

Inherits:
Octopress::Ink::Plugin
  • Object
show all
Defined in:
lib/octopress-code-highlighter.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ CodeHighlighter

Returns a new instance of CodeHighlighter.



54
55
56
57
58
59
# File 'lib/octopress-code-highlighter.rb', line 54

def initialize(name, type)
  @assets_path = File.expand_path(File.join(File.dirname(__FILE__), '../assets'))
  @version = Octopress::CodeHighlighter::VERSION
  @description = "For beautiful code snippets."
  super
end

Instance Method Details

#add_assetsObject



61
62
63
# File 'lib/octopress-code-highlighter.rb', line 61

def add_assets
  add_sass 'code.scss'
end