Sha256: 6d53eb016c61eba442a2dafd7b0097a47a4d1414d559e818192e9b6820b7a734
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
module ScaffoldMarkup module Builders class NavBarBuilder < BaseBuilder def to_s _self = self NavBar.top do append _self.template.capture(_self, &_self.block) end.to_s end def brand(text, url) Brand.new(text, url).html_safe end def container(&block) NavContainerBuilder.new(template, &block).html_safe end def link(text, url) Link.new(text, url).html_safe 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_bar_builder.rb |