Sha256: 4384500d81f14c77a45eb36e1c9a661f68d49f5c2ba8c4177eccaf39610f6afa

Contents?: true

Size: 507 Bytes

Versions: 150

Compression:

Stored size: 507 Bytes

Contents

# -*- ruby -*-
# frozen_string_literal: true

require 'pg' unless defined?( PG )


class PG::Tuple

	### Return a String representation of the object suitable for debugging.
	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 || field_map.keys.freeze
	end

	def each_key(&block)
		if fn=field_names
			fn.each(&block)
		else
			field_map.each_key(&block)
		end
	end
end

Version data entries

150 entries across 150 versions & 4 rubygems

Version Path
pg-1.6.0.rc1-x86_64-linux lib/pg/tuple.rb
pg-1.6.0.rc1-x86-mingw32 lib/pg/tuple.rb
pg-1.6.0.rc1-x64-mingw32 lib/pg/tuple.rb
pg-1.6.0.rc1-x64-mingw-ucrt lib/pg/tuple.rb
pg-1.6.0.rc1 lib/pg/tuple.rb
pg-1.5.9-x86-mingw32 lib/pg/tuple.rb
pg-1.5.9-x64-mingw32 lib/pg/tuple.rb
pg-1.5.9-x64-mingw-ucrt lib/pg/tuple.rb
pg-1.5.9 lib/pg/tuple.rb
pg-1.5.8-x64-mingw32 lib/pg/tuple.rb
pg-1.5.8-x64-mingw-ucrt lib/pg/tuple.rb
pg-1.5.8-x86-mingw32 lib/pg/tuple.rb
pg-1.5.8 lib/pg/tuple.rb
pg-1.5.7-x86-mingw32 lib/pg/tuple.rb
pg-1.5.7-x64-mingw32 lib/pg/tuple.rb
pg-1.5.7-x64-mingw-ucrt lib/pg/tuple.rb
pg-1.5.7 lib/pg/tuple.rb
pg-1.5.6-x64-mingw-ucrt lib/pg/tuple.rb
pg-1.5.6-x64-mingw32 lib/pg/tuple.rb
pg-1.5.6-x86-mingw32 lib/pg/tuple.rb