I'm porting some code from other language to Ruby, in my Class I need to maintain compatibility with those 4 constructors:
def initialize(b)
def initialize(a, b)
def initialize(b, c)
def initialize(a, b, c)
I was trying this way but it does not work:
def initialize(a="", b, c="")
Is there a smart solution? I cannot use hash.
initialize(a, b)andinitialize(b, c)?a,bandcare of completely different types.