Sha256: 287d7430ba6981ff5b561ff1fa4636a1a8bb20181a0ff699d5683121e12799ea

Contents?: true

Size: 277 Bytes

Versions: 1259

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module Props
    class NumberArray < Playbook::Props::Base
      def validate(value)
        return false unless value.is_a?(::Array)
        return false if value.empty?

        value.all?(Integer)
      end
    end
  end
end

Version data entries

1,259 entries across 1,259 versions & 1 rubygems

Version Path
playbook_ui-14.7.0.pre.rc.18 lib/playbook/props/number_array.rb
playbook_ui-14.6.2.pre.alpha.PBNTR667railstypeaheadformintegration4424 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.17 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.16 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.15 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.14 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.13 lib/playbook/props/number_array.rb
playbook_ui-14.6.2.pre.alpha.PBNTR666advancedtablefirstcolumn4406 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.12 lib/playbook/props/number_array.rb
playbook_ui-14.6.2.pre.alpha.PLAY15814384 lib/playbook/props/number_array.rb
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4380 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.11 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.10 lib/playbook/props/number_array.rb
playbook_ui-14.6.2.pre.alpha.PLAY1551tiptapextbump4350 lib/playbook/props/number_array.rb
playbook_ui-14.6.2.pre.alpha.PLAY15814348 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.9 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.8 lib/playbook/props/number_array.rb
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4316 lib/playbook/props/number_array.rb
playbook_ui-14.7.0.pre.rc.7 lib/playbook/props/number_array.rb
playbook_ui-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4312 lib/playbook/props/number_array.rb