Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby get instance variables without accessor

foo.instance_variable_set(:@foo, 12) 
puts foo.instance_variable_get(:@foo)
 
PREVIOUS NEXT
Tagged: #ruby #instance #variables #accessor
ADD COMMENT
Topic
Name
3+4 =