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
Instance Attribute Summary
Attributes inherited from PAnnotatedMember
Class Method Summary collapse
- .feature_type ⇒ Object private
Instance Method Summary collapse
- #callable_type ⇒ Object
-
#initialize(name, container, init_hash) ⇒ PFunction
constructor
A new instance of PFunction.
Methods inherited from PAnnotatedMember
#==, #_pcore_init_hash, #accept, #assert_can_be_overridden, #assert_override, #create_dispatch, #eql?, #feature_type, #final?, #hash, #invoke, label, #label, #override?
Methods included from Annotatable
#_pcore_init_hash, #annotatable_accept, #annotations, #init_annotatable
Constructor Details
#initialize(name, container, init_hash) ⇒ PFunction
Returns a new instance of PFunction.
334 335 336 |
# File 'lib/puppet/pops/types/p_object_type.rb', line 334 def initialize(name, container, init_hash) super(name, container, TypeAsserter.assert_instance_of(["initializer for function '%s'", name], TYPE_FUNCTION, init_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.
343 344 345 |
# File 'lib/puppet/pops/types/p_object_type.rb', line 343 def self.feature_type 'function' end |
Instance Method Details
#callable_type ⇒ Object
338 339 340 |
# File 'lib/puppet/pops/types/p_object_type.rb', line 338 def callable_type type end |