class Puppet::Pops::Types::PTypeReferenceType

Constants

DEFAULT

Attributes

type_string[R]

Public Class Methods

new(type_string) click to toggle source
     # File lib/puppet/pops/types/types.rb
3311 def initialize(type_string)
3312   @type_string = type_string
3313 end
register_ptype(loader, ir) click to toggle source
     # File lib/puppet/pops/types/types.rb
3305 def self.register_ptype(loader, ir)
3306   create_ptype(loader, ir, 'AnyType', 'type_string' => PStringType::NON_EMPTY)
3307 end

Public Instance Methods

callable?(args) click to toggle source
     # File lib/puppet/pops/types/types.rb
3315 def callable?(args)
3316   false
3317 end
eql?(o) click to toggle source
Calls superclass method Puppet::Pops::Types::PAnyType#eql?
     # File lib/puppet/pops/types/types.rb
3327 def eql?(o)
3328   super && o.type_string == @type_string
3329 end
hash() click to toggle source
     # File lib/puppet/pops/types/types.rb
3323 def hash
3324   @type_string.hash
3325 end
instance?(o, guard = nil) click to toggle source
     # File lib/puppet/pops/types/types.rb
3319 def instance?(o, guard = nil)
3320   false
3321 end
resolve(loader) click to toggle source
     # File lib/puppet/pops/types/types.rb
3331 def resolve(loader)
3332   TypeParser.singleton.parse(@type_string, loader)
3333 end

Protected Instance Methods

_assignable?(o, guard) click to toggle source
     # File lib/puppet/pops/types/types.rb
3337 def _assignable?(o, guard)
3338   # A type must be assignable to itself or a lot of unit tests will break
3339   o == self
3340 end