lib/yard/code_objects/base.rb in yard-0.9.28 vs lib/yard/code_objects/base.rb in yard-0.9.29

- old
+ new

@@ -432,10 +432,13 @@ # Default type is the lowercase class name without the "Object" suffix. # Override this method to provide a custom object type # # @return [Symbol] the type of code object this represents def type - self.class.name.split('::').last.gsub(/Object$/, '').downcase.to_sym + obj_name = self.class.name.split('::').last + obj_name.gsub!(/Object$/, '') + obj_name.downcase! + obj_name.to_sym end # Represents the unique path of the object. The default implementation # joins the path of {#namespace} with {#name} via the value of {#sep}. # Custom code objects should ensure that the path is unique to the code