Prateek vyasMacros in ruby | Metaprogramming in ruby -7A class method which can generate instance methods for us.2 min read·Feb 24, 2023----
Prateek vyasmethod_missing | Metaprogramming in ruby -6Missing methods in ruby2 min read·Feb 23, 2023----
Prateek vyasdefine_method | Metaprogramming in ruby -5Define your methods on the fly1 min read·Feb 22, 2023----
Prateek vyasSend method | Metaprogramming in ruby -4Call your methods in a different way2 min read·Feb 22, 2023----
Prateek vyasinstance_eval and class_eval | Metaprogramming in ruby -3change the behaviour of your classes and objects on the fly2 min read·Feb 22, 2023----
Prateek vyasConcept of metaclass Metaprogramming in ruby -2You can write the code that generates the code!4 min read·Feb 22, 2023----
Prateek vyasOpen classes | Metaprogramming in ruby-1Metaprogramming is you can generate the code by writing the code!2 min read·Feb 21, 2023----
Prateek vyasActiveModel::ValidationsEver wondered if you can use ActiveRecord like Validations in a pure ruby class?1 min read·Jul 13, 2022----
Prateek vyasActiveModel::CallbacksHere’s how you can use ActiveRecord like callbacks in a ruby class!2 min read·Jun 29, 2022----
Prateek vyasActiveModel::AttributeMethodsWhat does ActiveModel::AttributeMethods do?2 min read·Jun 27, 2022----