Method: YARD::CodeObjects::ClassObject#is_exception?
- Defined in:
- lib/yard/code_objects/class_object.rb
permalink #is_exception? ⇒ Boolean
Whether or not the class is a Ruby Exception
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 |