Method: Puppet::Pops::Types::PCallableType#initialize

Defined in:
lib/puppet/pops/types/types.rb

#initialize(param_types, block_type = nil, return_type = nil) ⇒ PCallableType

Returns a new instance of PCallableType.

Parameters:



2288
2289
2290
2291
2292
# File 'lib/puppet/pops/types/types.rb', line 2288

def initialize(param_types, block_type = nil, return_type = nil)
  @param_types = param_types
  @block_type = block_type
  @return_type = return_type == PAnyType::DEFAULT ? nil : return_type
end