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`.

Returns:

Raises:

  • (NotImplementedError)


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

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