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

#==, #accept, #assignable?, #callable?, #callable_args?, #eql?, #generalize, #hash, #iterable?, #iterable_type, #kind_of_callable?, #normalize, #simple_name, #to_alias_expanded_s, #to_s

Methods included from Visitable

#accept

Instance Method Details

#instance?(o) ⇒ Boolean

Returns:

  • (Boolean)


1126
1127
1128
# File 'lib/puppet/pops/types/types.rb', line 1126

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