Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Hash and Symbols
#ruby 2.3.1 puts "Hash and Symbols:" def m a, ap, b, bp puts " method m called with #{a[ap]} and #{b[bp]}" puts " method m called with #{a[:a]} and #{b[:b]}" end m({:xxx => 1, :a => 2}, :xxx, {:yyy => 3, b:4}, :yyy)
run
|
edit
|
history
|
help
0
IRSTSTMIDTRNS
ElaineBrown** rextester.com
interacting through strings with loops
Calculator
soncita
piramid4
variables 1
yes
Ruby Inheritence
code