Sha256: ab3b35c8dcae3ae87cebed87b3be89ccb51a996609052dd74006d128abd3bb08
Contents?: true
Size: 403 Bytes
Versions: 5
Compression:
Stored size: 403 Bytes
Contents
# module ApacheAge # module VertexTypeValidator # def # # Register the AGE typesvertex_attribute(attribute_name, type_symbol, klass) # attribute attribute_name, type_symbol # validate do # value = send(attribute_name) # unless value.is_a?(klass) # errors.add(attribute_name, "must be a #{klass.name}") # end # end # end # end # end
Version data entries
5 entries across 5 versions & 1 rubygems