class PgFuncall::FunctionSig

Constants

FTYPE_CACHE

Attributes

arg_sigs[R]
name[R]
ret_type[R]

Public Class Methods

new(name, ret_type, arg_sigs) click to toggle source
# File lib/pg_funcall/type_map.rb, line 10
def initialize(name, ret_type, arg_sigs)
  @name     = name.freeze
  @ret_type = ret_type
  @arg_sigs = arg_sigs.sort.freeze
end

Public Instance Methods

==(other) click to toggle source
# File lib/pg_funcall/type_map.rb, line 16
def ==(other)
  other.name     == @name
  other.ret_type == @ret_type
  other.arg_sigs == @arg_sigs
end