Class: PPStats::Modules::ModuleType

Inherits:
Object
  • Object
show all
Defined in:
lib/pp-stats/modules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dirs, file_exts = '*') ⇒ ModuleType

Returns a new instance of ModuleType.



119
120
121
122
123
124
# File 'lib/pp-stats/modules.rb', line 119

def initialize(dirs, file_exts='*')
  @dirs = dirs
  @file_exts = file_exts
  @counter = PPStats::Counter.new
  @exclude_exts = ['', '.png', '.exe', '.a']
end

Instance Attribute Details

#counterObject (readonly)

Returns the value of attribute counter.



117
118
119
# File 'lib/pp-stats/modules.rb', line 117

def counter
  @counter
end

#dirsObject (readonly)

Returns the value of attribute dirs.



117
118
119
# File 'lib/pp-stats/modules.rb', line 117

def dirs
  @dirs
end

#exclude_extsObject (readonly)

Returns the value of attribute exclude_exts.



117
118
119
# File 'lib/pp-stats/modules.rb', line 117

def exclude_exts
  @exclude_exts
end

#file_extsObject (readonly)

Returns the value of attribute file_exts.



117
118
119
# File 'lib/pp-stats/modules.rb', line 117

def file_exts
  @file_exts
end