Class: Puppet::Pops::Types::PBooleanType

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

Constant Summary collapse

DEFAULT =
PBooleanType.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)


775
776
777
# File 'lib/puppet/pops/types/types.rb', line 775

def instance?(o)
  o == true || o == false
end