diff options
Diffstat (limited to 'lib/puppet/network/format.rb')
-rw-r--r-- | lib/puppet/network/format.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/puppet/network/format.rb b/lib/puppet/network/format.rb index fb5a74a1c..243671d1c 100644 --- a/lib/puppet/network/format.rb +++ b/lib/puppet/network/format.rb @@ -106,7 +106,6 @@ class Puppet::Network::Format method = send(name) - return klass.respond_to?(method) if type == :class - return klass.instance_methods.include?(method) + return(type == :class ? klass.respond_to?(method) : klass.instance_methods.include?(method)) end end |