Class: CodeHighlighter
- Inherits:
-
Octopress::Ink::Plugin
- Object
- Octopress::Ink::Plugin
- CodeHighlighter
- Defined in:
- lib/octopress-code-highlighter.rb
Instance Method Summary collapse
- #add_assets ⇒ Object
-
#initialize(name, type) ⇒ CodeHighlighter
constructor
A new instance of CodeHighlighter.
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.(File.join(File.dirname(__FILE__), '../assets')) @version = Octopress::CodeHighlighter::VERSION @description = "For beautiful code snippets." super end |
Instance Method Details
#add_assets ⇒ Object
61 62 63 |
# File 'lib/octopress-code-highlighter.rb', line 61 def add_assets add_sass 'code.scss' end |