Method: RuboCop::AST::DefNode#void_context?
- Defined in:
- lib/rubocop/ast/node/def_node.rb
#void_context? ⇒ Boolean
Checks whether this node body is a void context.
15 16 17 |
# File 'lib/rubocop/ast/node/def_node.rb', line 15 def void_context? (def_type? && method?(:initialize)) || assignment_method? end |