Sha256: dfe6bedf11625e7c476c9c4c742d6fcf609b1515ffd89b1edf6f529284a62dc0

Contents?: true

Size: 446 Bytes

Versions: 6

Compression:

Stored size: 446 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        module Lists
          class Header < Line
            attr_accessor :total_lines

            def initialize(context:, **attribs_, &block)
              super(type: :header, context: context, **attribs_, &block)
              @total_lines = attribs.delete(:total_lines) || 0
              expand!
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 lib/voom/presenters/dsl/components/lists/header.rb
voom-presenters-0.1.12 lib/voom/presenters/dsl/components/lists/header.rb
voom-presenters-0.1.11 lib/voom/presenters/dsl/components/lists/header.rb
voom-presenters-0.1.10 lib/voom/presenters/dsl/components/lists/header.rb
voom-presenters-0.1.9 lib/voom/presenters/dsl/components/lists/header.rb
voom-presenters-0.1.8 lib/voom/presenters/dsl/components/lists/header.rb