class SimpleNavigation::Adapters::Padrino
Public Class Methods
register()
click to toggle source
# File lib/simple_navigation/adapters/padrino.rb, line 5 def self.register SimpleNavigation.set_env(PADRINO_ROOT, PADRINO_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 14 def content_tag(type, content, options={}) context.content_tag type, content, options end
link_to(name, url, options={})
click to toggle source
# File lib/simple_navigation/adapters/padrino.rb, line 10 def link_to(name, url, options={}) context.link_to name, url, options end