Sha256: 28adb4417b31708d12f9ed90fce762ac41191be8788c7d97dce26e2363d2b7af

Contents?: true

Size: 220 Bytes

Versions: 2

Compression:

Stored size: 220 Bytes

Contents

module ControlCenter
  module Helpers
    class TabBuilder
  
      def initialize(&block)
        @block = block
      end
    
      def tab(tab_name, url)
        @block.call(tab_name, url)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
control_center-1.0.2 lib/control_center/helpers/tab_builder.rb
control_center-1.0.1 lib/control_center/helpers/tab_builder.rb