require "peto/mixin/peto_class" module Peto class Animal include PetoClass def initialize(args={}) @nme = nil set_by_hash(args) raise_errors unless valid? end attr_reader :nme def members [:nme] end def types {:nme => String} end def arrays {} end end end