Module: Reek::AST::SexpExtensions::OptargNode Private

Includes:
ArgNodeBase
Defined in:
lib/reek/ast/sexp_extensions.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Utility methods for :optarg nodes.

Instance Method Summary collapse

Methods included from ArgNodeBase

#==, #anonymous_splat?, #block?, #components, #marked_unused?, #name, #plain_name

Instance Method Details

#optional_argument?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


61
62
63
# File 'lib/reek/ast/sexp_extensions.rb', line 61

def optional_argument?
  true
end