Sha256: bb4d81cc8f974e7b62f90a6ac29484ff3fdd9d2609064b34aa5c0499c555585c

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        class Separator < Base
          attr_reader :padding

          def initialize(**attribs_, &block)
            super(type: :separator, **attribs_, &block)
            padding = attribs.delete(:padding) {:full}
            @padding = validate_padding(coerce_padding(padding)).uniq if padding != nil
            expand!
          end

          private
          include Mixins::Padding
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/separator.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/separator.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/separator.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/separator.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/separator.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/separator.rb