Wrap a Ruby object by parsing text file including key-values