Module: RuboCop::AST::ModifierNode
Overview
Common functionality for nodes that can be used as modifiers: ‘if`, `while`, `until`
Instance Method Summary collapse
-
#modifier_form? ⇒ Boolean
Checks whether the node is in a modifier form, i.e.
Instance Method Details
#modifier_form? ⇒ Boolean
Checks whether the node is in a modifier form, i.e. a condition trailing behind an expression.
12 13 14 |
# File 'lib/rubocop/ast/node/mixin/modifier_node.rb', line 12 def modifier_form? loc.end.nil? end |