How does one reference an array within a method?
example:
def attack (creature)
if huntable.include? ("#{creature}")
<do something here>
end
end
How does one reference an array within a method?
example:
def attack (creature)
if huntable.include? ("#{creature}")
<do something here>
end
end
You should read about scope.
http://en.wikiversity.org/wiki/Intro...gramming/Scope
~ Azanoth
Discord: carnivale1523