Module: Puppet::Pops::Types::TypeWithMembers

Included in:
PObjectType, PObjectTypeExtension, PURIType
Defined in:
lib/puppet/pops/types/type_with_members.rb

Overview

Interface implemented by a type that has InvocableMembers

Instance Method Summary collapse

Instance Method Details

#[](member_name) ⇒ InvocableMember?

Returns An invocable member if it exists, or `nil`

Raises:

  • (NotImplementedError)

7
8
9
# File 'lib/puppet/pops/types/type_with_members.rb', line 7

def [](member_name)
  raise NotImplementedError, "'#{self.class.name}' should implement #[]"
end