Sha256: 5d5686d24dd5ba43bc4e18c34433e3fa67d0c07effbd3c534857c6bd6d1a7deb

Contents?: true

Size: 285 Bytes

Versions: 7

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

module Effective
  module TableRows
    class ContentFor < Effective::TableRow

      def to_html(&block)
        content_tag(:tr) do
          content_tag(:td, label) + content_tag(:td, template.capture(&block))
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_bootstrap-1.14.1 app/models/effective/table_rows/content_for.rb
effective_bootstrap-1.14.0 app/models/effective/table_rows/content_for.rb
effective_bootstrap-0.13.7 app/models/effective/table_rows/content_for.rb
effective_bootstrap-0.13.6 app/models/effective/table_rows/content_for.rb
effective_bootstrap-0.13.5 app/models/effective/table_rows/content_for.rb
effective_bootstrap-0.13.4 app/models/effective/table_rows/content_for.rb
effective_bootstrap-0.13.3 app/models/effective/table_rows/content_for.rb