lib/inch/code_object/proxy/method_object.rb in inch-0.1.4 vs lib/inch/code_object/proxy/method_object.rb in inch-0.2.0
- old
+ new
@@ -1,9 +1,14 @@
module Inch
module CodeObject
module Proxy
# Proxy class for methods
class MethodObject < Base
+
+ def constructor?
+ name == :initialize
+ end
+
def comment_and_abbrev_source
comments.join('') + abbrev_source
end
def bang_name?