Fantastic global methods in Ruby and where to find them
03-Feb-2023 821
Many languages allow defining methods globally, which makes them available everywhere. Ruby is not different: you can define a method on the “top–level” and it behave like a global one. However, everything in Ruby is class, which means that these methods should belong to something. In this post we will figure out how global methods really work in Ruby!.
Fantastic global methods in Ruby and where to find them #ruby #rubydeveloper #rubyonrails #Fantastic #global #methods #where https://rubyonrails.ba/link/fantastic-global-methods-in-ruby-and-where-to-find-them