- 26 February 2017
- Ruby
- Class Macros. Let's create simplified version of Reform
If you use Rails you could see and use class macros many times. For example we use it for defining associations in ActiveRecord models:
class User
has_many :posts
end
has_many
it's a class macro.