Method: RuboCop::AST::BlockNode#void_context?

Defined in:
lib/rubocop/ast/node/block_node.rb

#void_context?Boolean

Checks whether this node body is a void context.

Returns:

  • (Boolean)

    whether the block node body is a void context



154
155
156
# File 'lib/rubocop/ast/node/block_node.rb', line 154

def void_context?
  VOID_CONTEXT_METHODS.include?(method_name)
end