class Puppet::Pops::Types::AttrReader
Plays the same role as an PAttribute in the PObjectType
. Provides access to known attr_readers and plain reader methods.
Public Class Methods
new(message)
click to toggle source
# File lib/puppet/pops/types/type_with_members.rb 33 def initialize(message) 34 @message = message.to_sym 35 end
Public Instance Methods
invoke(receiver, scope, args, &block)
click to toggle source
# File lib/puppet/pops/types/type_with_members.rb 37 def invoke(receiver, scope, args, &block) 38 receiver.send(@message) 39 end