Sha256: 5e1dd49f7e9beb8676944354cf71e0f1f56d9a985ce34f87673d804671c5f7e6

Contents?: true

Size: 509 Bytes

Versions: 3

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbDateTimeStacked
    class DateTimeStacked < Playbook::KitBase
      prop :date, deprecated: true
      prop :date_time, type: Playbook::Props::Date,
                  default: ::DateTime.current
      prop :dark, type: Playbook::Props::Boolean,
                  default: false
      prop :timezone, type: Playbook::Props::String,
                  default: "America/New_York"

    def date_time_value
      date || date_time
    end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.rb
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.rb
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.rb