lib/railsstrap/classes/nav.rb in railsstrap-4.0.0.beta2 vs lib/railsstrap/classes/nav.rb in railsstrap-4.0.0.beta3
- old
+ new
@@ -16,9 +16,14 @@
def layout_class
return if Railsstrap::Stack.find(Railsstrap::Navbar)
Nav.layouts[@options[:layout]]
end
+ # @return [#to_s] choose between using <nav>, <ol>, or <ul> tags
+ def tag
+ @options[:tag] || :nav
+ end
+
# @return [Hash<Symbol, String>] the classes that Bootstrap requires to
# append to navs for each possible style.
def self.styles
HashWithIndifferentAccess.new.tap do |klass|
\ No newline at end of file