Sha256: 98d07e9863c80ae22cd56f1fb958cee6b4a74b2321346fdc04a38db7bd1bd808

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents


module Checked
  class Ask
    class Arrays

      include Ask::Base

      namespace '/array!'

      route
      def symbols?
        return false if target.empty?
        target.all? { |val| val.is_a? Symbol }
      end 
      
      route
      def include? 
        target.include?(*args)
      end

      route
      def exclude? 
        !target.include?(*args)
      end
      
    end # === class Arrays


  end # === class Ask
end # === class Checked

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Checked-1.0.0 lib/Checked/Ask/Arrays.rb