Sha256: d55e82f94710d8564603771e542979e8120f8c638f049f926f7c76d032112739

Contents?: true

Size: 430 Bytes

Versions: 12

Compression:

Stored size: 430 Bytes

Contents

class ParsedFile

  include PoroPlus
  include Ephemeral::Base

  attr_accessor :path_to_file, :class_name

  def class_name
    @class_name ||= analyzer.extract_class_name
  end

  def content
    @content ||= File.open(path_to_file, "r").read
  end

  def analyzer
    Analyzer.new(content)
  end

  def complexity
    @complexity ||= analyzer.complexity
  end

  def methods
    @methods ||= analyzer.extract_methods
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fukuzatsu-0.9.13 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.12 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.11 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.10 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.8 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.7 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.6 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.5 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.4 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.3 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.1 lib/fukuzatsu/parsed_file.rb
fukuzatsu-0.9.0 lib/fukuzatsu/parsed_file.rb