Class: Mutant::AST::Meta::Optarg
- Inherits:
-
Object
- Object
- Mutant::AST::Meta::Optarg
- Includes:
- NamedChildren
- Defined in:
- lib/mutant/ast/meta/optarg.rb
Overview
Metadata for optional argument nodes
Constant Summary collapse
- UNDERSCORE =
'_'.freeze
Instance Method Summary collapse
-
#used? ⇒ Boolean
private
Test if optarg definition intends to be used.
Methods included from NamedChildren
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
19 20 21 |
# File 'lib/mutant/ast/meta/optarg.rb', line 19 def used? !name.to_s.start_with?(UNDERSCORE) end |