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
3312 def initialize(type_string)
3313   @type_string = type_string
3314 end
register_ptype(loader, ir) click to toggle source
     # File lib/puppet/pops/types/types.rb
3306 def self.register_ptype(loader, ir)
3307   create_ptype(loader, ir, 'AnyType', 'type_string' => PStringType::NON_EMPTY)
3308 end

Public Instance Methods

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

Protected Instance Methods

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