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

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

ios - Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc? -