dynamic method call in Ruby:
http://khelll.com/blog/ruby/ruby-dynamic-method-calling/
On Wed, May 9, 2012 at 4:28 PM, Raja Tirupati
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
> def test()
> puts "calling from variable"
> end
>
> x="test" # or x="test()"
>
> From above code, how can I call function with the variable x.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
*David Angga Prasetya*
*RoR Developers*
skype: david.angga
phone: +62 85 222 1 5555 2
*
*
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.