global

def method_visibility(meth)

def method_visibility(meth)
  if meth.owner.public_instance_methods.include? meth.name
    :public
  elsif meth.owner.protected_instance_methods.include? meth.name
    :protected
  elsif meth.owner.private_instance_methods.include? meth.name
    :private
  else
    :none
  end
end