Class: Puppet::Pops::Types::PDataType
- Inherits:
-
PAnyType
- Object
- TypedModelObject
- PAnyType
- Puppet::Pops::Types::PDataType
- Defined in:
- lib/puppet/pops/types/types.rb
Overview
A flexible data type, being assignable to its subtypes as well as PArrayType and PHashType with element type assignable to PDataType.
Constant Summary collapse
- DEFAULT =
PDataType.new
Instance Method Summary collapse
Methods inherited from PAnyType
#==, #accept, #assignable?, #callable?, #callable_args?, #generalize, #hash, #iterable?, #iterable_type, #kind_of_callable?, #normalize, #simple_name, #to_alias_expanded_s, #to_s
Methods included from Visitable
Instance Method Details
#eql?(o) ⇒ Boolean
492 493 494 |
# File 'lib/puppet/pops/types/types.rb', line 492 def eql?(o) self.class == o.class || o == PVariantType::DATA end |
#instance?(o) ⇒ Boolean
496 497 498 |
# File 'lib/puppet/pops/types/types.rb', line 496 def instance?(o) PVariantType::DATA.instance?(o) end |