Class: Puppet::Pops::Types::PScalarType
- Inherits:
-
PAnyType
- Object
- TypedModelObject
- PAnyType
- Puppet::Pops::Types::PScalarType
- Defined in:
- lib/puppet/pops/types/types.rb
Overview
Type that is PDataType compatible, but is not a PCollectionType.
Direct Known Subclasses
PBooleanType, PEnumType, PNumericType, PPatternType, PRegexpType, PStringType
Constant Summary collapse
- DEFAULT =
PScalarType.new
Instance Method Summary collapse
Methods inherited from PAnyType
#==, #assignable?, #callable?, #callable_args?, #enumerable?, #generalize, #hash, #kind_of_callable?, #simple_name, #to_s
Methods included from Visitable
Instance Method Details
#instance?(o) ⇒ Boolean
353 354 355 |
# File 'lib/puppet/pops/types/types.rb', line 353 def instance?(o) assignable?(TypeCalculator.infer(o)) end |