Class: Puppet::Pops::Types::PObjectType::PFunction
- Inherits:
-
PAnnotatedMember
- Object
- PAnnotatedMember
- Puppet::Pops::Types::PObjectType::PFunction
- Defined in:
- lib/puppet/pops/types/p_object_type.rb
Overview
Describes a named Function in an Object type
Constant Summary
Constants included from Annotatable
Annotatable::TYPE_ANNOTATIONS, Annotatable::TYPE_ANNOTATION_KEY_TYPE, Annotatable::TYPE_ANNOTATION_VALUE_TYPE
Instance Attribute Summary
Attributes inherited from PAnnotatedMember
Attributes included from Annotatable
Class Method Summary collapse
- .feature_type ⇒ Object private
Instance Method Summary collapse
- #callable_type ⇒ Object
-
#initialize(name, container, i12n_hash) ⇒ PFunction
constructor
A new instance of PFunction.
Methods inherited from PAnnotatedMember
#==, #accept, #assert_can_be_overridden, #assert_override, #create_dispatch, #eql?, #feature_type, #final?, #hash, #i12n_hash, #invoke, label, #label, #override?
Methods included from Annotatable
#annotatable_accept, #i12n_hash, #init_annotatable
Constructor Details
#initialize(name, container, i12n_hash) ⇒ PFunction
Returns a new instance of PFunction.
323 324 325 |
# File 'lib/puppet/pops/types/p_object_type.rb', line 323 def initialize(name, container, i12n_hash) super(name, container, TypeAsserter.assert_instance_of(["initializer for function '%s'", name], TYPE_FUNCTION, i12n_hash)) end |
Class Method Details
.feature_type ⇒ 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.
332 333 334 |
# File 'lib/puppet/pops/types/p_object_type.rb', line 332 def self.feature_type 'function' end |
Instance Method Details
#callable_type ⇒ Object
327 328 329 |
# File 'lib/puppet/pops/types/p_object_type.rb', line 327 def callable_type type end |