I need to create a generic function that is used to call many other functions depending on access to them. 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 takes it as a string and assigns it. Please help with this as soon as possible.
thanks
Satyam gautam
source share