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 34 def initialize(message) 35 @message = message.to_sym 36 end
Public Instance Methods
invoke(receiver, scope, args, &block)
click to toggle source
# File lib/puppet/pops/types/type_with_members.rb 38 def invoke(receiver, scope, args, &block) 39 receiver.send(@message) 40 end