-
Jan 29, 2024 Debugging dedicated day
-
Add useful touchpad gestures to ubuntu Macbook like touch gestures in ruby
-
Ruby code to bytecode Our code’s journey before actually getting executed to the machine level.
-
Simple Notifications A very simple gem providing the notifications functionality to any model in a Rails application.
-
=== Triple equal in ruby a === bIt means If (a) describes a set, would (b) a member of that set?```ruby(1..5) === 3 # => true(1..5) === 6 # => false
-
:send method in ruby(Dynamic dispatch) Dynamic dispatch in ruby allows us to send messages to an object.
-
Partial application and curring in ruby Partial function application is calling a function with some number of arguments, in order to get a function back that will take that many less arguments.
-
:method_missing in rails When we call any random method on any object in rails which is not defined then rails handles it through a method method_missing.We can utilize the :method_missing in our code like below code -
-
:dynamic_method in ruby Methods can be defined dynamically in ruby.Practially I felt like implementing :dynamic_method in my application when there were some values in the database and I had to create methods(method name) depending on those values.
-
Variable hoisting in ruby Variable Hoisting is a mechanism by which the Ruby declares and defines variables.