Advanced Section
If dealing with module, it is part of metaprogramming, and it tells Ruby to insert methods (defs), like coins in a vending machine, in the module as if they were the module's own methods. It means all defs inside class << self till the last end will only belong to the module and nobody else. If you wanna get them, you gotta call the module first: Puma.scratch_siletrea
It's a way to set its exclusivity or sole ownership or only owner. Those methods won't belong to Game_Actor nor @puma_bakery nor anybody else. You use it mainly if you wanna change a module's method that already exists.
Simple Section
In arrays that is almost the same as push, you are actually pushing stuff inside the array like bullets in a gun or citton in a teddy bear. The difference between push and << is the way you use any specific vending machine.
push: The vending machine is slow and you insert a coin or bill and need to wait for confirmation before you can insert a new coin or bill. It is like a machine yelling at you to give it a break before you can insert another coin.
<< : The vending machine realizes you are inserting coins or bills one after another, it will quickly update the result without yelling at you that you should stop for a moment, and will also confirm the result after you stop inserting coins.
Edited for clarification.
If dealing with module, it is part of metaprogramming, and it tells Ruby to insert methods (defs), like coins in a vending machine, in the module as if they were the module's own methods. It means all defs inside class << self till the last end will only belong to the module and nobody else. If you wanna get them, you gotta call the module first: Puma.scratch_siletrea
It's a way to set its exclusivity or sole ownership or only owner. Those methods won't belong to Game_Actor nor @puma_bakery nor anybody else. You use it mainly if you wanna change a module's method that already exists.
Simple Section
In arrays that is almost the same as push, you are actually pushing stuff inside the array like bullets in a gun or citton in a teddy bear. The difference between push and << is the way you use any specific vending machine.
push: The vending machine is slow and you insert a coin or bill and need to wait for confirmation before you can insert a new coin or bill. It is like a machine yelling at you to give it a break before you can insert another coin.
<< : The vending machine realizes you are inserting coins or bills one after another, it will quickly update the result without yelling at you that you should stop for a moment, and will also confirm the result after you stop inserting coins.
Edited for clarification.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE