module Peregrine::Features::Configurable

Provides the configure method. Intended to be included in classes requiring this functionality.

Public Instance Methods

configure() { |self| ... } click to toggle source

Yields the object this method is called on. This method is intended to allow configuration of Peregrine objects with other features. Returns the object this method was called on.

Example

entity = Peregrine::Entity.new
entity.configure { |e| e.name = 'Example' } # => Entity 'Example' ...
# File lib/peregrine/features/configurable.rb, line 14
def configure
  yield self if block_given?
  self
end