Class: PPStats::Modules::ModuleType
- Inherits:
-
Object
- Object
- PPStats::Modules::ModuleType
- Defined in:
- lib/pp-stats/modules.rb
Instance Attribute Summary collapse
-
#counter ⇒ Object
readonly
Returns the value of attribute counter.
-
#dirs ⇒ Object
readonly
Returns the value of attribute dirs.
-
#exclude_exts ⇒ Object
readonly
Returns the value of attribute exclude_exts.
-
#file_exts ⇒ Object
readonly
Returns the value of attribute file_exts.
Instance Method Summary collapse
-
#initialize(dirs, file_exts = '*') ⇒ ModuleType
constructor
A new instance of ModuleType.
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
#counter ⇒ Object (readonly)
Returns the value of attribute counter.
117 118 119 |
# File 'lib/pp-stats/modules.rb', line 117 def counter @counter end |
#dirs ⇒ Object (readonly)
Returns the value of attribute dirs.
117 118 119 |
# File 'lib/pp-stats/modules.rb', line 117 def dirs @dirs end |
#exclude_exts ⇒ Object (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_exts ⇒ Object (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 |