Method: Puppet::Pops::Types::PObjectType#attributes

Defined in:
lib/puppet/pops/types/p_object_type.rb

#attributes(include_parent = false) ⇒ Hash{String=>PAttribute}

Returns the attributes of this ‘Object` type. If include_parent is `true`, then all inherited attributes will be included in the returned `Hash`.

Parameters:

  • (defaults to: false)

    ‘true` if inherited attributes should be included

Returns:

  • a hash with the attributes

API:

  • public



970
971
972
# File 'lib/puppet/pops/types/p_object_type.rb', line 970

def attributes(include_parent = false)
  get_members(include_parent, :attributes)
end