Sha256: cd754d4371640572c05eef4a92a25bbf027786cdac45f30a3b2a8c1abb6aeb19

Contents?: true

Size: 968 Bytes

Versions: 8

Compression:

Stored size: 968 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,
                                                    context: context,
                                                    **attribs, &block)
            end

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 lib/voom/presenters/dsl/components/mixins/date_time_fields.rb
voom-presenters-0.1.12 lib/voom/presenters/dsl/components/mixins/date_time_fields.rb
voom-presenters-0.1.11 lib/voom/presenters/dsl/components/mixins/date_time_fields.rb
voom-presenters-0.1.10 lib/voom/presenters/dsl/components/mixins/date_time_fields.rb
voom-presenters-0.1.9 lib/voom/presenters/dsl/components/mixins/date_time_fields.rb
voom-presenters-0.1.8 lib/voom/presenters/dsl/components/mixins/date_time_fields.rb
voom-presenters-0.1.7 lib/voom/presenters/dsl/components/mixins/date_time_fields.rb
voom-presenters-0.1.6 lib/voom/presenters/dsl/components/mixins/date_time_fields.rb