# YAML parse restrict object types

**URL:** <https://www.ruby-forum.com/t/yaml-parse-restrict-object-types/76171>\
**Category:** Ruby\
**Created:** [November 16, 2006, 1:21pm UTC](https://www.ruby-forum.com/t/yaml-parse-restrict-object-types/76171 "2006-11-16T13:21:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benhiller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/8e7dd6/32.png) [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Post date:** [November 16, 2006, 1:21pm UTC](https://www.ruby-forum.com/t/yaml-parse-restrict-object-types/76171/1 "2006-11-16T13:21:31Z")

</div>

I want to use YAML as a data language for a simple and secure RPC  
mechanism. Is there any way to restrict the types of objects that  
YAML::load() will produce. I want, for instance, to restrict it to  
Arrays, Hashes, Strings and Fixnums.

Thanks,  
Ben
