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

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -