Wrap a Ruby object by parsing file including key-values