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.16-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.16-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.16-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.16-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.15-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.15-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.15-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.15-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.14-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.14-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.14-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.14-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.13-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.13-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.13-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.13-aarch64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.12-x86_64-linux ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.12-x86_64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.12-arm64-darwin ./lib/cipherstash-pg/tuple.rb
cipherstash-pg-1.0.0.beta.12-aarch64-linux ./lib/cipherstash-pg/tuple.rb