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.



51
52
53
54
55
56
# File 'lib/octopress-code-highlighter.rb', line 51

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



58
59
60
# File 'lib/octopress-code-highlighter.rb', line 58

def add_assets
  add_sass 'code.scss'
end