Sha256: 57a7e03942f2856938b2d6788f53aecd68bd41c7cbecf66b69eee8fba0485af2
Contents?: true
Size: 797 Bytes
Versions: 3
Compression:
Stored size: 797 Bytes
Contents
# -*- encoding : utf-8 -*- # ============================================================================ # # RAILS BOOTSTRAP ENGINE ## # ============================================================================ # # Copyright 2012-2013 Luiz Eduardo de Oliveira Fonseca, AgĂȘncia Orangeweb # # Licensed under The MIT License # # http://opensource.org/licenses/MIT # module RailsBootstrapEngine class BootstrapMarkupCollectionSet attr_accessor :collections def initialize(view, items) @collections = {} items.each do |item| @collections[item] = RailsBootstrapEngine::BootstrapMarkupCollection.new(view) instance_eval <<-EOF def #{item} yield @collections[#{item.inspect}] end EOF end end end end
Version data entries
3 entries across 3 versions & 1 rubygems