class Esquema::Property
def initialize(object, options = {})
-
(ArgumentError)
- If the property does not have a name.
Parameters:
-
options
(Hash
) -- Additional options for the property. -
object
(Object
) -- The object to build the property for.
def initialize(object, options = {}) raise ArgumentError, "property must have a name" unless object.respond_to?(:name) @object = object @options = options end