Method: Puppet::Pops::Adaptable::Adapter.self_attr_name
- Defined in:
- lib/puppet/pops/adaptable.rb
.self_attr_name ⇒ String
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.
Returns a suitable instance variable name for the name of this instance. The name is created by calling Adapter#instance_var_name and then cached. rubocop:disable Naming/MemoizedInstanceVariableName
193 194 195 |
# File 'lib/puppet/pops/adaptable.rb', line 193 def self.self_attr_name @attr_name_sym ||= :"@#{instance_var_name(type_name)}" end |