Method: Ecic::SourceFileInfo#initialize

Defined in:
lib/ecic/source_file_info.rb

#initialize(project, file_name, library = nil) ⇒ SourceFileInfo

Returns a new instance of SourceFileInfo.



11
12
13
14
15
16
# File 'lib/ecic/source_file_info.rb', line 11

def initialize(project, file_name, library=nil)
  @project = project
  @absolute_path = Pathname.new(File.expand_path(file_name))      
  @relative_path_from_project = @absolute_path.relative_path_from(Pathname.new("#{@project.root}"))
  @library = library || get_library_from_file_path
end