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.11-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.11-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.11-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.11-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.10-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.10-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.10-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.10-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.9-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.9-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.9-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.9-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.8-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.8-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.8-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.8-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.7-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.7-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.7-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.7-x86_64-linux ./lib/cipherstash-pg/tuple.rb