disu.se

ModuleClass

Namespace

Top-level Namespace

Ancestors
  1. Object

Ruby’s Module class, extended to add #Value, a way of creating value object classes.

Instance Methods

Value(first, *rest, options)#

Marks the module as a ::Value object with attributes first and rest. This’ll add protected attribute readers for each of these attributes and a private method #attributes that returns the Value::Attributes themselves, include Value::Comparable if COMPARABLE isn’t falsy, and finally include ::Value.