Releases: MatheusRich/ez_attributes
Releases · MatheusRich/ez_attributes
v0.3.0
[0.3.0] - 2021-10-25
Changed
- 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
v0.2.2
v0.2.1
Changed
- Do not generate getter for attribute named
class
. This prevents overriding theObject#class
method.
v0.2.0
Added
- 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
v0.1.0
Basic module to define class initializers with keyword args.