Files

Virtus::ClassMethods

Class methods that are added when you include Virtus

Public Instance Methods

attribute_set() click to toggle source

Returns all the attributes defined on a Class

@example

class User
  include Virtus

  attribute :name, String
  attribute :age,  Integer
end

User.attribute_set  # =>

TODO: implement inspect so the output is not cluttered - solnic

@return [AttributeSet]

@api public

# File lib/virtus/class_methods.rb, line 38
def attribute_set
  @attribute_set
end
attributes() click to toggle source

@see Virtus::ClassMethods.attribute_set

@deprecated

@api public

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.