Sha256: 03b09ab6d94500e920611af091fafe016a483cf63f14224be823dc356a221c87

Contents?: true

Size: 239 Bytes

Versions: 12

Compression:

Stored size: 239 Bytes

Contents

require 'apotomo/widget'

module Apotomo
  class ContainerWidget < Widget
    def display
      content = render_children.collect{ |v| v.last }.join("\n")
      render :text => "<div id=\"#{self.name}\">#{content}</div>"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
apotomo-1.0.5 lib/apotomo/container_widget.rb
apotomo-1.0.4 lib/apotomo/container_widget.rb
apotomo-1.0.3 lib/apotomo/container_widget.rb
apotomo-1.0.2 lib/apotomo/container_widget.rb
apotomo-1.0.1 lib/apotomo/container_widget.rb
apotomo-1.0.0 lib/apotomo/container_widget.rb
apotomo-1.0.0.beta2 lib/apotomo/container_widget.rb
apotomo-1.0.0.beta1 lib/apotomo/container_widget.rb
apotomo-0.1.4 lib/apotomo/container_widget.rb
apotomo-0.1.3 lib/apotomo/container_widget.rb
apotomo-0.1.2 lib/apotomo/container_widget.rb
apotomo-0.1.1 lib/apotomo/container_widget.rb