All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.3.0 - 2021-10-25
- Allow configuring EzAttributes (PR #3)
class User
extend EzAttributes.configure(getters: false)
attributes :name, :age, email: '[email protected]'
end
User.new(name: 'Matz', age: 22).name
# NoMethodError (undefined method `name' for #<User:0x000055bac152f130>)
- Replace Rubocop with StandardRB
0.2.2 - 2021-04-30
- Fix shared state between class instances. (Commit 759abc7cb971e6a30448f5e9557be4542128d7cf)
0.2.1 - 2021-01-20
- Do not generate getter for attribute named
class
. This prevents overriding theObject#class
method.
0.2.0 - 2021-01-19
- Allow using reserved words as attributes.
Class.new do
extend EzAttributes
# This would break in 0.1.0.
# Now it works.
attributes :class, :if
end
0.1.0 - 2020-11-24
- Basic module to define class initializers with keyword args.