I have to made a generic function which is used for the purpose of calling many other functions depending upon the accesses im getting.
For Ex:

```
def func1

   @access = ['public','private','protected']
   for acc in @access
       @temp = "get_"+acc[1]+"_data"
   end
end

def get_public_data
end

def get_private_data
end

def get_protected_data
end

```

but @temp is taking it as a string and assigning it to it.
Please help in this ASAP.

Thank You