Mega Code Archive
Categories
/
Ruby
/
Language Basics
Have two local variables with the same name but in different scopes
def basic_method x = 50 puts x end x = 10 basic_method puts x