lib/inch/code_object/proxy/base.rb in inch-0.4.0.rc1 vs lib/inch/code_object/proxy/base.rb in inch-0.4.0.rc2
- old
+ new
@@ -198,9 +198,13 @@
def source
self[:source]
end
+ def type
+ self.class.to_s.gsub(/Object$/, '')
+ end
+
# @return [Boolean] +true+ if the object has no documentation at all
def undocumented?
self[:undocumented?]
end