Sha256: 0e6d1a41711bcbe916b654eac0977d480b5df6101adf3d5d8089852955b2f6c3

Contents?: true

Size: 274 Bytes

Versions: 12

Compression:

Stored size: 274 Bytes

Contents

module Coprl::Presenters::WebClient::Helpers
  module Includes
    def include?(array, value)
      array.map(&:to_s).include?(value.to_s)
    end

    def includes_one?(array1, array2)
      (array2.map(&:to_sym)-array1.map(&:to_sym)).size != array2.size
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.11 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.10 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.9 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.8 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.7 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.6 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.5 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.4 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.3 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.2 lib/coprl/presenters/web_client/helpers/includes.rb
coprl-3.0.0.beta.1 lib/coprl/presenters/web_client/helpers/includes.rb