Single argument constructors of a class are called Conversion constructors. They manage the conversion of one type to another. Rice handles this functionality through a special method, define_implicit_cast<From, To>().
Use this method to specify which constructors are meant to be used in implicit casting. This will mark the constructor as such and won’t wrap it directly, but will build an appropriate define_implicit_cast<> call for the two types (class and argument)
# File lib/rbplusplus/transformers/constructor.rb, line 17 def implicit_casting(state) @implicit_casting = state end