Module: Virtus::ModuleExtensions

Defined in:
lib/virtus/module_extensions.rb

Overview

Virtus module that can define attributes for later inclusion

Instance Method Summary collapse

Instance Method Details

#attribute(*args) ⇒ self

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Define an attribute in the module

Returns:

  • (self)

See Also:



14
15
16
17
# File 'lib/virtus/module_extensions.rb', line 14

def attribute(*args)
  attribute_definitions << args
  self
end