Sha256: 2b4ec2b38ecf7264c71cec4ce8034e913ecc5f1eb572fce3a78e87779910ec31

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

module ScaffoldMarkup
  module Builders
    class NavContainerBuilder < BaseBuilder

      def initialize(*args, &block)
        super(*args, &block)
        @container = NavContainer.new {}
      end

      def to_s
        template.capture(self, &block)
        @container.to_s
      end

      def link(text, url)
        @container.append Link.new(text, url)
      end

      def pull_right
        @container.pull_right
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scaffold_markup-0.0.1 lib/scaffold_markup/builders/nav_container_builder.rb