Check If A Ruby Method Exists
Join the DZone community and get the full member experience.Join For Free
Discover how Cisco DevNet can help you create innovative applications for the Internet of Things leveraging Cisco APIs and platforms, brought to you in partnership with Cisco DevNet.
User.respond_to?('name') # returns true is method name exists otherwise false