Class: StyleStats::PathParser
- Inherits:
-
Object
- Object
- StyleStats::PathParser
- Defined in:
- lib/style_stats/path_parser.rb
Constant Summary collapse
- EXTENSIONS =
['.less', '.styl', '.stylus', '.css']
Instance Attribute Summary collapse
-
#files ⇒ Object
Returns the value of attribute files.
Instance Method Summary collapse
-
#initialize(path) ⇒ PathParser
constructor
A new instance of PathParser.
Constructor Details
#initialize(path) ⇒ PathParser
Returns a new instance of PathParser.
7 8 9 |
# File 'lib/style_stats/path_parser.rb', line 7 def initialize(path) self.files = parse(path) end |
Instance Attribute Details
#files ⇒ Object
Returns the value of attribute files.
5 6 7 |
# File 'lib/style_stats/path_parser.rb', line 5 def files @files end |