module Acfs::Resource::Attributes

Acfs Attributes

Allows to specify attributes of a class with default values and type safety.

@example

class User < Acfs::Resource
  attribute :name, :string, default: 'Anon'
  attribute :age, :integer
  attribute :special, My::Special::Type
end

For each attribute a setter and getter will be created and values will be type casted when set.