Class: Mutant::AST::Meta::Optarg Private

Inherits:
Object
  • Object
show all
Includes:
NamedChildren
Defined in:
lib/mutant/ast/meta/optarg.rb

Overview

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

Metadata for optional argument nodes

Constant Summary collapse

UNDERSCORE =

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

'_'

Instance Method Summary collapse

Methods included from NamedChildren

included

Instance Method Details

#used?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.

Test if optarg definition intends to be used



21
22
23
# File 'lib/mutant/ast/meta/optarg.rb', line 21

def used?
  !name.start_with?(UNDERSCORE)
end