Sha256: be72f3f4169db19dd961e23844a31e8df68f9ad9e3a93d730ebc1b40d2300be2

Contents?: true

Size: 465 Bytes

Versions: 79

Compression:

Stored size: 465 Bytes

Contents

require("cipherstash-pg") unless defined? CipherStashPG
class CipherStashPG::Tuple
  def inspect
    "#<#{self.class} #{self.map { |k, v| "#{k}: #{v.inspect}" }.join(", ")}>"
  end
  
  def has_key?(key)
    field_map.has_key?(key)
  end
  
  alias :key? :has_key?
  
  def keys
    (field_names or field_map.keys.freeze)
  end
  
  def each_key(&block)
    if fn = field_names then
      fn.each(&block)
    else
      field_map.each_key(&block)
    end
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
cipherstash-pg-1.0.0.beta.22-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.22-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.22-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.22-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.21-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.21-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.21-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.21-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.19-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.19-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.19-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.19-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.18-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.18-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.18-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.18-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.17-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.17-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.17-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.17-arm64-darwin ./lib/cipherstash-pg/tuple.rb