Over a million developers have joined DZone.

Check If A Ruby Method Exists

· IoT Zone

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



DevIoT is an Internet of Things development environment enabling frictionless design and deployment of complex IoT solutions.  Curious? Learn how you can easily design and deploy IoT applications with Cisco DevIoT.

Topics:
ruby

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}