class PGExaminer::Result::Function
Constants
- EXCESS_WHITESPACE_REGEX
Public Instance Methods
argument_types()
click to toggle source
# File lib/pg_examiner/result/function.rb, line 30 def argument_types @argument_types ||= @row['proargtypes'].split.map do |oid| result.pg_type.find{|t| t['oid'] == oid}['name'] end end
definition()
click to toggle source
# File lib/pg_examiner/result/function.rb, line 24 def definition s = @row['definition'].strip s.gsub!(EXCESS_WHITESPACE_REGEX, ' ') s end
diffable_attrs()
click to toggle source
# File lib/pg_examiner/result/function.rb, line 8 def diffable_attrs { "name" => "name", "proargmodes" => "argument modes", } end
diffable_methods()
click to toggle source
# File lib/pg_examiner/result/function.rb, line 15 def diffable_methods { "argument_types" => "argument types", "return_type" => "return type", "language" => "language", "definition" => "function definition", } end
language()
click to toggle source
# File lib/pg_examiner/result/function.rb, line 40 def language @language ||= result.pg_language.find{|l| l['oid'] == @row['prolang']}['name'] end
return_type()
click to toggle source
# File lib/pg_examiner/result/function.rb, line 36 def return_type @return_type ||= result.pg_type.find{|t| t['oid'] == @row['prorettype']}['name'] end