Module: DataMapper::Model::Is

Module | DataMapper::Model::Is
In: | lib/dm-core/model/is.rb

Module that provides a common way for plugin authors to implement "is … " traits (object behaviors that can be shared)

### Methods

is

### Public Instance methods

is(plugin, *args, &block)

A common interface to activate plugins for a resource. For instance:

class Widget

      include DataMapper::Resource

      is :list

end

adds list item behavior to the model. Plugin that wants to conform to "is API" of DataMapper must supply is_+behavior name+ method, for example above it would be is_list.

@api public

[Validate]