Class | Versionomy::Schema::Wrapper |
In: |
lib/versionomy/schema/wrapper.rb
|
Parent: | Object |
Schemas are generally referenced through an object of this class.
Create a new schema wrapper object given a root field. This is a low-level method. Usually you should call Versionomy::Schema#create instead.
If the RHS is a schema, returns true if the schemas are equivalent. If the RHS is a value, returns true if the value uses this schema.
Returns true if this schema is equivalent to the other schema. Two schemas are equivalent if their root fields are the same— which means that the entire field tree is the same— and they include the same value modules. Note that this is different from the definition of ==.
Return the field with the given name, or nil if the given name is not found in this schema. If include_aliases_ is set to true, this also supports lookup by alias.