lib/fukuzatsu/parsed_method.rb in fukuzatsu-1.0.4 vs lib/fukuzatsu/parsed_method.rb in fukuzatsu-1.0.5
- old
+ new
@@ -1,9 +1,15 @@
class ParsedMethod
- include PoroPlus
+ attr_reader :name, :content, :type, :complexity, :references
- attr_accessor :name, :content, :type, :complexity
+ def initialize(name: name, content: content, type: type, refs: refs=[], complexity: complexity)
+ @name = name
+ @content = content
+ @type = type
+ @references = refs
+ @complexity = complexity
+ end
def complexity
@complexity ||= analyzer.complexity
end
\ No newline at end of file