Class: ReFe::MFRelationParser
- Inherits:
-
Object
- Object
- ReFe::MFRelationParser
- Defined in:
- lib/refe/mfrelationparser.rb
Instance Method Summary collapse
Instance Method Details
#parse(f) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/refe/mfrelationparser.rb', line 15 def parse( f ) relations = {} while line = f.gets if /\AInit_/ === line add_relations relations, f end end relations end |