Sha256: db93cad6323f3fbd6c92ec753b72569981082facb623d806ddf85e89265000e0

Contents?: true

Size: 766 Bytes

Versions: 7

Compression:

Stored size: 766 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        module Mixins
          module DateTimeFields
            def datetime_field(**attribs, &block)
              self << Components::DatetimeField.new(parent: self,
                                                    **attribs, &block)
            end

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

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