class SimpleNavigation::Adapters::Padrino
Public Class Methods
register()
click to toggle source
# File lib/simple_navigation/adapters/padrino.rb, line 4 def self.register SimpleNavigation.set_env(PADRINO_ROOT, RACK_ENV) ::Padrino::Application.send(:helpers, SimpleNavigation::Helpers) end
Public Instance Methods
content_tag(type, content, options = {})
click to toggle source
# File lib/simple_navigation/adapters/padrino.rb, line 13 def content_tag(type, content, options = {}) context.content_tag(type, content.html_safe, options) end
link_to(name, url, options = {})
click to toggle source
# File lib/simple_navigation/adapters/padrino.rb, line 9 def link_to(name, url, options = {}) context.link_to(name, url, options) end