class Hylite::CodeRay
Public Class Methods
available?()
click to toggle source
# File lib/hylite/hyliters.rb, line 75 def self.available? require 'coderay' true rescue LoadError false end
Public Instance Methods
call()
click to toggle source
# File lib/hylite/hyliters.rb, line 86 def call ::CodeRay.encode(code, lang, :terminal) end
type()
click to toggle source
# File lib/hylite/hyliters.rb, line 82 def type :coderay end