module RuboCop::AST::ModifierNode
Common functionality for nodes that can be used as modifiers: `if`, `while`, `until`
Public Instance Methods
modifier_form?()
click to toggle source
Checks whether the node is in a modifier form, i.e. a condition trailing behind an expression.
@return [Boolean] whether the node is a modifier
# File lib/rubocop/ast/node/mixin/modifier_node.rb, line 11 def modifier_form? loc.end.nil? end