Class: Pageflow::ProgressNavigationBar::WidgetType

Inherits:
WidgetType
  • Object
show all
Defined in:
lib/pageflow/progress_navigation_bar/widget_type.rb

Direct Known Subclasses

HorizontalWidgetType, VerticalWidgetType

Instance Method Summary collapse

Instance Method Details

#render(template, entry, locals) ⇒ Object



8
9
10
11
# File 'lib/pageflow/progress_navigation_bar/widget_type.rb', line 8

def render(template, entry, locals)
  template.render(File.join('pageflow/progress_navigation_bar/widget'),
                  locals.merge(entry: entry))
end

#rolesObject



4
5
6
# File 'lib/pageflow/progress_navigation_bar/widget_type.rb', line 4

def roles
  ['navigation']
end