Method: YARD::CodeObjects::ClassObject#is_exception?

Defined in:
lib/yard/code_objects/class_object.rb

#is_exception?Boolean

Whether or not the class is a Ruby Exception

Returns:

  • (Boolean)

    whether the object represents a Ruby exception

[View source]

32
33
34
# File 'lib/yard/code_objects/class_object.rb', line 32

def is_exception?
  inheritance_tree.reverse.any? {|o| BUILTIN_EXCEPTIONS_HASH.has_key? o.path }
end