Class: Swoop::FileParser
- Inherits:
-
Object
- Object
- Swoop::FileParser
- Defined in:
- lib/swoop/file_parser.rb
Instance Attribute Summary collapse
-
#entityInfos ⇒ Object
readonly
Returns the value of attribute entityInfos.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filepath) ⇒ FileParser
constructor
A new instance of FileParser.
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
#entityInfos ⇒ Object (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 |