Sha256: 7cb2a5c26b6f8252f82d654da2deb79679be9ffbef4ff04abfb8c4d10504af09

Contents?: true

Size: 523 Bytes

Versions: 7

Compression:

Stored size: 523 Bytes

Contents

module Navigator
  module ActionView
	  def self.included base
	    base.send :include, InstanceMethods
	  end

    module InstanceMethods
      # Renders a navigation menu.
      # ==== Parameters
      # * +tag+ - Optional. The menu tag. Default: "ul"
      # * +attributes+ - Optional. The menu tag attributes. Default: {}
      # * +block+ - Optional. The code block.
      def render_navigation tag = "ul", attributes = {}, &block
        raw Menu.new(self, tag, attributes, &block).render
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
navigator-0.2.1 lib/navigator/action_view/instance_methods.rb
navigator-0.6.0 lib/navigator/action_view/instance_methods.rb
navigator-0.5.0 lib/navigator/action_view/instance_methods.rb
navigator-0.4.0 lib/navigator/action_view/instance_methods.rb
navigator-0.3.0 lib/navigator/action_view/instance_methods.rb
navigator-0.2.0 lib/navigator/action_view/instance_methods.rb
navigator-0.1.0 lib/navigator/action_view/instance_methods.rb