Fantastic global methods in Ruby and where to find them
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