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 640 def self.new_function(type) 641 @new_function ||= Puppet::Functions.create_loaded_function(:new_unit, type.loader) do 642 dispatch :from_args do 643 param 'Any', :from 644 end 645 646 def from_args(from) 647 from 648 end 649 end 650 end
register_ptype(loader, ir)
click to toggle source
# File lib/puppet/pops/types/types.rb 631 def self.register_ptype(loader, ir) 632 create_ptype(loader, ir, 'AnyType') 633 end
Public Instance Methods
assignable?(o, guard=nil)
click to toggle source
# File lib/puppet/pops/types/types.rb 654 def assignable?(o, guard=nil) 655 true 656 end
from_args(from)
click to toggle source
# File lib/puppet/pops/types/types.rb 646 def from_args(from) 647 from 648 end
instance?(o, guard = nil)
click to toggle source
# File lib/puppet/pops/types/types.rb 635 def instance?(o, guard = nil) 636 true 637 end
Protected Instance Methods
_assignable?(o, guard)
click to toggle source
@api private
# File lib/puppet/pops/types/types.rb 661 def _assignable?(o, guard) 662 true 663 end