Sha256: d38ca11531542e56729377794cf8227dcd2ab001a79a10d4ffaab996eda26e0c

Contents?: true

Size: 275 Bytes

Versions: 4

Compression:

Stored size: 275 Bytes

Contents

class ParsedMethod

  include PoroPlus

  attr_accessor :name, :content, :type, :complexity

  def complexity
    @complexity ||= analyzer.complexity
  end

  def prefix
    self.type.to_s == 'class' ? "." : "#"
  end

  def analyzer
    Analyzer.new(self.content)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fukuzatsu-0.10.1 lib/fukuzatsu/parsed_method.rb
fukuzatsu-0.9.16 lib/fukuzatsu/parsed_method.rb
fukuzatsu-0.9.15 lib/fukuzatsu/parsed_method.rb
fukuzatsu-0.9.14 lib/fukuzatsu/parsed_method.rb