Common functionality for checking if nodes.
# File lib/rubocop/cop/mixin/if_node.rb, line 14 def elsif?(node) node.loc.respond_to?(:keyword) && node.loc.keyword && node.loc.keyword.is?('elsif') end
# File lib/rubocop/cop/mixin/if_node.rb, line 19 def if_else?(node) node.loc.respond_to?(:else) && node.loc.else end
Generated with the Darkfish Rdoc Generator 2.