all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
11
Task/Variables/Ruby/variables.rb
Normal file
11
Task/Variables/Ruby/variables.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$a_global_var = 5
|
||||
class Demo
|
||||
@@a_class_var = 6
|
||||
A_CONSTANT = 8
|
||||
def initialize
|
||||
@an_instance_var = 7
|
||||
end
|
||||
def incr(a_local_var)
|
||||
@an_instance_var += a_local_var
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue