module YARD::Handlers::Common::MethodHandler

def add_predicate_return_tag(obj)

Parameters:
  • obj (MethodObject) --
def add_predicate_return_tag(obj)
  if obj.tag(:return) && (obj.tag(:return).types || []).empty?
    obj.tag(:return).types = ['Boolean']
  elsif obj.tag(:return).nil?
    unless obj.tags(:overload).any? {|overload| overload.tag(:return) }
      obj.add_tag(YARD::Tags::Tag.new(:return, "", "Boolean"))
    end
  end
end