Bug #15097

reference to 'super' in custom type parameter docs fails in ruby 1.9

Added by Chris Price about 1 year ago. Updated 11 months ago.

Status:Needs More InformationStart date:06/18/2012
Priority:NormalDue date:
Assignee:Chris Price% Done:

0%

Category:-
Target version:-
Keywords: Affected URL:
Branch:

Description

The docs here:

http://docs.puppetlabs.com/guides/custom_types.html#parameters

show how to pass back through to ‘super’ in a type->parameter’s validate/munge methods. However, if you try to run this code in ruby 1.9 you will get the following error:

implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly

History

#1 Updated by James Turnbull 11 months ago

  • Status changed from Unreviewed to Needs More Information
  • Assignee set to Chris Price

Is this something that is not going to ever work? Will work in Telly? Or example should be changed? If so, how should example be changed?

Also available in: Atom PDF