class Puppet::Pops::Types::PUnitType

A type private to the type system that describes “ignored type” - i.e. “I am what you are” @api private

Constants

DEFAULT

Public Class Methods

new_function(type) click to toggle source

A “null” implementation - that simply returns the given argument

    # File lib/puppet/pops/types/types.rb
641 def self.new_function(type)
642   @new_function ||= Puppet::Functions.create_loaded_function(:new_unit, type.loader) do
643     dispatch :from_args do
644       param          'Any',  :from
645     end
646 
647     def from_args(from)
648       from
649     end
650   end
651 end
register_ptype(loader, ir) click to toggle source
    # File lib/puppet/pops/types/types.rb
632 def self.register_ptype(loader, ir)
633   create_ptype(loader, ir, 'AnyType')
634 end

Public Instance Methods

assignable?(o, guard=nil) click to toggle source
    # File lib/puppet/pops/types/types.rb
655 def assignable?(o, guard=nil)
656   true
657 end
from_args(from) click to toggle source
    # File lib/puppet/pops/types/types.rb
647 def from_args(from)
648   from
649 end
instance?(o, guard = nil) click to toggle source
    # File lib/puppet/pops/types/types.rb
636 def instance?(o, guard = nil)
637   true
638 end

Protected Instance Methods

_assignable?(o, guard) click to toggle source

@api private

    # File lib/puppet/pops/types/types.rb
662 def _assignable?(o, guard)
663   true
664 end