Class: Puppet::Pops::Types::PScalarType

Inherits:
PAnyType show all
Defined in:
lib/puppet/pops/types/types.rb

Overview

Type that is PDataType compatible, but is not a PCollectionType.

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

#accept

Instance Method Details

#instance?(o) ⇒ Boolean

Returns:

  • (Boolean)


353
354
355
# File 'lib/puppet/pops/types/types.rb', line 353

def instance?(o)
  assignable?(TypeCalculator.infer(o))
end