Module Creatable::ClassMethods
In: lib/creatable/class_methods.rb

Class methods that get mixed in.

Methods

Public Instance methods

Replacement for attr_* Will build the same getter/setter methods. will also include a kind_of check. @param [String] name name of the attribute @param [String] type accessor, reader, or writer @param [Class] kind_of class that this can be set too @raise [ArgumentError] if name is not supplied @raise [ArgumentError] if the type is not accessor, reader, or writer @return [Void]

Returns the list of attributes attatched to this object @return [Array] the current attributes

Create a new instance of a given object. Allows you to pass in any attribute. @param [Hash] args key/value pairs for existing attributes @return [Object] Newly created object

[Validate]