Setting instance variables in Ruby -


In Ruby, how do I specify a string on a frequency variable, so that it is available for other methods in a class?

  @variable = "your string"  

As simple as it is


Comments

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -