Is a Custom Initializer with both param and options set possible?


I’ve been trying to use a custom initialize method on a class with a single param and a series of options, but the submitted values are not applied - the class always is crated with the default values.

My initialize method is very simple at this point:

def initialize(*args)

If I only configure options, then the submitted values are used.

I checked out the custom initializer spec and I noticed it doesn’t have a test for a mix of options and params.

Is mixing params and options with a custom initializer not supported?

If it is, could I get a functional example of the usage?

  def initialize(param, *args)

didn’t work for me.

Thank you


Disregard! PEBKAC, I had string keys on my incoming hash instead of symbols.