This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is set when function is called | |
This also depends on HOW it is called. Not how it is defined. | |
Examples = | |
constructor => this = new object ({}) | |
var test = new Test(); | |
method => this = receiver (test) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$results = [] | |
$results << class A | |
def initialize | |
@a = 11 | |
@@a = 22 | |
a = 33 | |
end | |
@a = 1 | |
@@a = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def lcd(num, size) | |
horizontal = Proc.new do |n| | |
a = [] | |
a << " " | |
a << ("-" * n) | |
a << " " | |
end | |
vertical = Proc.new do |n| | |
a = [] |
NewerOlder