lib/ruprint/builders.rb
# Generate the html for this row.
Generate the html for this row.
Generate the html for this row .
def render
        @css_classes << "span-#{@width}" if @width.present?
        @css_classes << "push-#{@push}" if @push.present?
        @css_classes << "pull-#{@pull}" if @pull.present?
        @css_classes << "append-#{@append}" if @append.present?
        @css_classes << "prepend-#{@prepend}" if @prepend.present?
        @css_classes << "box" if @box.present?
        @css_classes << "border" if @border.present?
        @css_classes << "colborder" if @colborder.present?
        options         = {}
        options[:id]    = @css_id if @css_id.present?
        options[:class] = @css_classes.join(" ") if @css_classes.present?
        content_tag(:div, @html, options)
      end
def render @css_classes << "span-#{@width}" if @width . present? @css_classes << "push-#{@push}" if @push . present? @css_classes << "pull-#{@pull}" if @pull . present? @css_classes << "append-#{@append}" if @append . present? @css_classes << "prepend-#{@prepend}" if @prepend . present? @css_classes << "box" if @box . present? @css_classes << "border" if @border . present? @css_classes << "colborder" if @colborder . present? options = { } options [ :id ] = @css_id if @css_id . present? options [ :class ] = @css_classes . join ( " " ) if @css_classes . present? content_tag ( :div , @html , options ) end
Generate the html for this row.
Generate the html for this row .