[Solved] Ruby: call initialize method before others in class [closed]
initialize is an instance method in this class, so the def initialize is just setting up the constructor for the class. call.. is calling the class’s call method at the time the class definition is parsed. This code is equivalent to class Lol < Redstone def initialize super 2013 end end Lol.call “https://stackoverflow.com/” do |headers| … Read more