Module: Virtus::ClassMethods
- Includes:
- ConstMissingExtensions, Extensions::Methods
- Defined in:
- lib/virtus/class_methods.rb
Overview
Class methods that are added when you include Virtus
Instance Method Summary collapse
-
#attribute_set ⇒ AttributeSet
Returns all the attributes defined on a Class.
- #attributes ⇒ Object deprecated Deprecated.
Methods included from ConstMissingExtensions
Methods included from Extensions::Methods
Instance Method Details
#attribute_set ⇒ AttributeSet
Returns all the attributes defined on a Class
38 39 40 |
# File 'lib/virtus/class_methods.rb', line 38 def attribute_set @attribute_set end |
#attributes ⇒ Object
Deprecated.
47 48 49 50 |
# File 'lib/virtus/class_methods.rb', line 47 def attributes warn "#{self}.attributes is deprecated. Use #{self}.attribute_set instead: #{caller.first}" attribute_set end |