Class: Interview::Navigation
- Includes:
- HasControls
- Defined in:
- lib/interview/navigation.rb
Instance Attribute Summary collapse
-
#action_name ⇒ Object
Returns the value of attribute action_name.
-
#controller_name ⇒ Object
Returns the value of attribute controller_name.
-
#current_filter ⇒ Object
Returns the value of attribute current_filter.
-
#current_scope ⇒ Object
Returns the value of attribute current_scope.
Attributes included from HasControls
Attributes inherited from Control
Instance Method Summary collapse
Methods included from HasControls
#add_control, #add_controls, included, #initialize, #siblings
Methods inherited from Control
#ancestors, build, definition, #find_attribute, #find_attribute!, inherited, #initialize, #set_attributes, #set_defaults
Instance Attribute Details
#action_name ⇒ Object
Returns the value of attribute action_name.
5 6 7 |
# File 'lib/interview/navigation.rb', line 5 def action_name @action_name end |
#controller_name ⇒ Object
Returns the value of attribute controller_name.
5 6 7 |
# File 'lib/interview/navigation.rb', line 5 def controller_name @controller_name end |
#current_filter ⇒ Object
Returns the value of attribute current_filter.
5 6 7 |
# File 'lib/interview/navigation.rb', line 5 def current_filter @current_filter end |
#current_scope ⇒ Object
Returns the value of attribute current_scope.
5 6 7 |
# File 'lib/interview/navigation.rb', line 5 def current_scope @current_scope end |
Instance Method Details
#render ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/interview/navigation.rb', line 7 def render auto_set_active html = Builder::XmlMarkup.new html.ul class: 'nav nav-pills nav-stacked' do @controls.each do |control| html << control.render end end return html.target! end |