Sha256: 9483421d22649b2375c860bfd36a4a658e1d3e2c862bc11fd5a490fd0606734e

Contents?: true

Size: 204 Bytes

Versions: 25

Compression:

Stored size: 204 Bytes

Contents

module Elastics
  class Scope < Vars
    module Utils

    private

      def array_value(value)
        (value.first.is_a?(::Array) && value.size == 1) ? value.first : value
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
elastics-scopes-1.3.3 lib/elastics/scope/utils.rb
elastics-scopes-1.3.2 lib/elastics/scope/utils.rb
elastics-scopes-1.3.1 lib/elastics/scope/utils.rb
elastics-scopes-1.3.0 lib/elastics/scope/utils.rb
elastics-scopes-1.2.1 lib/elastics/scope/utils.rb
elastics-scopes-1.2.0 lib/elastics/scope/utils.rb
elastics-scopes-1.1.11 lib/elastics/scope/utils.rb
elastics-scopes-1.1.10 lib/elastics/scope/utils.rb
elastics-scopes-1.1.9 lib/elastics/scope/utils.rb
elastics-scopes-1.1.8 lib/elastics/scope/utils.rb
elastics-scopes-1.1.7 lib/elastics/scope/utils.rb
elastics-scopes-1.1.6 lib/elastics/scope/utils.rb
elastics-scopes-1.1.5 lib/elastics/scope/utils.rb
elastics-scopes-1.1.4 lib/elastics/scope/utils.rb
elastics-scopes-1.1.3 lib/elastics/scope/utils.rb
elastics-scopes-1.1.2 lib/elastics/scope/utils.rb
elastics-scopes-1.1.1 lib/elastics/scope/utils.rb
elastics-scopes-1.1.0 lib/elastics/scope/utils.rb
elastics-scopes-1.0.10 lib/elastics/scope/utils.rb
elastics-scopes-1.0.9 lib/elastics/scope/utils.rb