Class: StyleStats::PathParser

Inherits:
Object
  • Object
show all
Defined in:
lib/style_stats/path_parser.rb

Constant Summary collapse

EXTENSIONS =
['.less', '.styl', '.stylus', '.css']

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filesObject

Returns the value of attribute files.



5
6
7
# File 'lib/style_stats/path_parser.rb', line 5

def files
  @files
end