G
Size: a a a
G
G
G
def clear
system 'clear'
end
send :clear
G
AS
KR
ruby my_script.rb "my_method"
-------------------------->>
# start file
method_name = gets.chomp
def i_want_this_method(some_staff = "nothing")
p some_staff
end
def another_method
p "this is anither method
end
send method_name.to_sym
# end file
KR
G
ruby my_script.rb "my_method"
-------------------------->>
# start file
method_name = gets.chomp
def i_want_this_method(some_staff = "nothing")
p some_staff
end
def another_method
p "this is anither method
end
send method_name.to_sym
# end file
KR
Р
D
G
G
G
G
M
SR
G