Jira (PDOC-236) @!accessor directive for params.pp (or something)

2019-05-01 Thread Jesse Scott (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Scott updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Strings /  PDOC-236  
 
 
  @!accessor directive for params.pp (or something)   
 

  
 
 
 
 

 
Change By: 
 Jesse Scott  
 
 
Team: 
 Modules Puppet Developer Experience  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PDOC-236) @!accessor directive for params.pp (or something)

2018-04-12 Thread Eric Putnam (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Eric Putnam created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Strings /  PDOC-236  
 
 
  @!accessor directive for params.pp (or something)   
 

  
 
 
 
 

 
Issue Type: 
  New Feature  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2018/04/12 6:24 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Eric Putnam  
 

  
 
 
 
 

 
 from PDOC-153: 
 
Also, Consider the following, commonly used, params.pp 
 
 
 
 
 
 foo::params {  
 
 
   $bar = 'baz'  
 
 
 }
  
 
 
 
 
 
In this case, I would like to be able to declare that the $foo::params::bar variable is available for use but it is not a parameter. 
Ideally, this would be documented with the @!accessor [r] method, but, when I attempted to use this, an error was thrown. 
Presently, I'll continue using @param but it is inherently incorrect and a more correct alternative should be suppl