Class: Puppet::Pops::Types::PTypeReferenceType Private
- Inherits:
-
PAnyType
- Object
- TypedModelObject
- PAnyType
- Puppet::Pops::Types::PTypeReferenceType
- Defined in:
- lib/puppet/pops/types/types.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #type_string ⇒ Object readonly private
Class Method Summary collapse
Instance Method Summary collapse
- #callable?(args) ⇒ Boolean private
- #eql?(o) ⇒ Boolean private
- #hash ⇒ Object private
-
#initialize(type_string) ⇒ PTypeReferenceType
constructor
private
A new instance of PTypeReferenceType.
- #instance?(o, guard = nil) ⇒ Boolean private
- #resolve(type_parser, loader) ⇒ Object private
Methods inherited from PAnyType
#==, #accept, #assignable?, #callable_args?, #callable_with?, #check_self_recursion, #create, #generalize, #iterable?, #iterable_type, #kind_of_callable?, #name, new_function, #new_function, #normalize, #really_instance?, #simple_name, simple_name, #to_alias_expanded_s, #to_s
Methods inherited from TypedModelObject
_ptype, create_ptype, register_ptypes
Methods included from Visitable
Methods included from PuppetObject
Constructor Details
#initialize(type_string) ⇒ PTypeReferenceType
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of PTypeReferenceType.
3079 3080 3081 |
# File 'lib/puppet/pops/types/types.rb', line 3079 def initialize(type_string) @type_string = type_string end |
Instance Attribute Details
#type_string ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3077 3078 3079 |
# File 'lib/puppet/pops/types/types.rb', line 3077 def type_string @type_string end |
Class Method Details
.register_ptype(loader, ir) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3073 3074 3075 |
# File 'lib/puppet/pops/types/types.rb', line 3073 def self.register_ptype(loader, ir) create_ptype(loader, ir, 'AnyType', 'type_string' => PStringType::NON_EMPTY) end |
Instance Method Details
#callable?(args) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3083 3084 3085 |
# File 'lib/puppet/pops/types/types.rb', line 3083 def callable?(args) false end |
#eql?(o) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3095 3096 3097 |
# File 'lib/puppet/pops/types/types.rb', line 3095 def eql?(o) super && o.type_string == @type_string end |
#hash ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3091 3092 3093 |
# File 'lib/puppet/pops/types/types.rb', line 3091 def hash @type_string.hash end |
#instance?(o, guard = nil) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3087 3088 3089 |
# File 'lib/puppet/pops/types/types.rb', line 3087 def instance?(o, guard = nil) false end |
#resolve(type_parser, loader) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3099 3100 3101 |
# File 'lib/puppet/pops/types/types.rb', line 3099 def resolve(type_parser, loader) type_parser.parse(@type_string, loader) end |