Module: LockerKit::ApplicationHelper

Defined in:
app/helpers/locker_kit/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#block_code(code, lexer) ⇒ Object



3
4
5
# File 'app/helpers/locker_kit/application_helper.rb', line 3

def block_code(code, lexer)
  Pygments.highlight(code, lexer: lexer).html_safe
end

#octicon(code) ⇒ Object



7
8
9
# File 'app/helpers/locker_kit/application_helper.rb', line 7

def octicon(code)
   :span, '', class: "octicon octicon-#{code.to_s.dasherize}"
end