Sha256: 41f096180bc0b3b51776fd6953822b2f4be07977e4e24253729e20c1732196c5

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        module Mixins
          module Selects
            def select(**attribs, &block)
              self << Components::Select.new(parent: self,
                                             **attribs, &block)
            end

            def multi_select(**attribs, &block)
              self << Components::MultiSelect.new(parent: self,
                                                  **attribs, &block)
            end

          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/mixins/selects.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/mixins/selects.rb