Class: Swoop::FileParser

Inherits:
Object
  • Object
show all
Defined in:
lib/swoop/file_parser.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filepath) ⇒ FileParser

Returns a new instance of FileParser.



13
14
15
# File 'lib/swoop/file_parser.rb', line 13

def initialize(filepath)
  @filepath = filepath
end

Instance Attribute Details

#entityInfosObject (readonly)

Returns the value of attribute entityInfos.



7
8
9
# File 'lib/swoop/file_parser.rb', line 7

def entityInfos
  @entityInfos
end

Class Method Details

.parse(filepaths) ⇒ Object



9
10
11
# File 'lib/swoop/file_parser.rb', line 9

def self.parse(filepaths)
  filepaths.map { |p| self.new(p).entityInfos }.compact.uniq
end