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.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 lib/playbook/props/number_array.rb
playbook_ui-14.9.0.pre.rc.8 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 lib/playbook/props/number_array.rb
playbook_ui-14.9.0.pre.rc.7 lib/playbook/props/number_array.rb
playbook_ui-14.9.0.pre.rc.6 lib/playbook/props/number_array.rb
playbook_ui-14.9.0.pre.rc.5 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.play1648heightglobalprops4606 lib/playbook/props/number_array.rb
playbook_ui-14.9.0.pre.rc.4 lib/playbook/props/number_array.rb
playbook_ui-14.9.0.pre.rc.3 lib/playbook/props/number_array.rb
playbook_ui-14.9.0.pre.rc.2 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4567 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4565 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4563 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.play1648heightglobalprops4559 lib/playbook/props/number_array.rb
playbook_ui-14.9.0.pre.rc.1 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.PLAY16254545 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4543 lib/playbook/props/number_array.rb
playbook_ui-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4539 lib/playbook/props/number_array.rb
playbook_ui-14.9.0.pre.rc.0 lib/playbook/props/number_array.rb