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

winforms - C# Form - Property Change -

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

javascript - amcharts makechart not working -