Module: ImproveYourCode::AST::SexpExtensions::OptargNode

Includes:
ArgNodeBase
Defined in:
lib/improve_your_code/ast/sexp_extensions/arguments.rb

Instance Method Summary collapse

Methods included from ArgNodeBase

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

Instance Method Details

#optional_argument?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/improve_your_code/ast/sexp_extensions/arguments.rb', line 47

def optional_argument?
  true
end