2 followers
Software writer out of curiosity. 322D 9687 C273 50CE 5F39 7A03 0D27 F9C6 BDAF B6D3
You might have seen this solution. Object.send(:remove_const, :ExampleClass) But what if you want to remove namespaced classes in Ruby. You can use...
A polygon always has an exterior angle sum to 360 no matter the number of sides or their width. A triangle has an exterior angle sum equal to 360 A...
y = a(x-h)^2 + k If there's a parabola. You can find and tweak it with these parameters 'a' defines whether parabola is facing upward of...
Do you agree that lines can go upward / direction or downward \ ? What's the direction of the following line? Yes, upward. This line is represented...
Class instance variables are variables that have punctual prefix @ and are used inside class definition. class Shape @count = 6 def...
Class variable Class variables are variables prefixed by @@ . class Shape @@no_of_shapes = 6 def instance_method_x puts "No:...