Class: Puppet::Pops::Types::PTypeAliasType::AssertOtherTypeAcceptor Private
- Defined in:
- lib/puppet/pops/types/types.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.
Acceptor used when checking for self recursion and that a type contains something other than aliases or type references
Instance Method Summary collapse
-
#initialize ⇒ AssertOtherTypeAcceptor
constructor
private
A new instance of AssertOtherTypeAcceptor.
- #other_type_detected? ⇒ Boolean private
- #visit(type, _) ⇒ Object private
Constructor Details
#initialize ⇒ AssertOtherTypeAcceptor
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 a new instance of AssertOtherTypeAcceptor.
3444 3445 3446 |
# File 'lib/puppet/pops/types/types.rb', line 3444 def initialize @other_type_detected = false end |
Instance Method Details
#other_type_detected? ⇒ 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.
3454 3455 3456 |
# File 'lib/puppet/pops/types/types.rb', line 3454 def other_type_detected? @other_type_detected end |
#visit(type, _) ⇒ Object
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.
3448 3449 3450 3451 3452 |
# File 'lib/puppet/pops/types/types.rb', line 3448 def visit(type, _) unless type.is_a?(PTypeAliasType) || type.is_a?(PVariantType) @other_type_detected = true end end |