Module: Virtus::ModuleExtensions
- Defined in:
- lib/virtus/module_extensions.rb
Overview
Virtus module that can define attributes for later inclusion
Instance Method Summary collapse
-
#attribute(*args) ⇒ self
private
Define an attribute in the module.
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
14 15 16 17 |
# File 'lib/virtus/module_extensions.rb', line 14 def attribute(*args) attribute_definitions << args self end |