lib/mixture/coerce/object.rb in mixture-0.5.1 vs lib/mixture/coerce/object.rb in mixture-0.6.0
- old
+ new
@@ -20,9 +20,10 @@
end
end
end
coerce_to(Types::Object, Itself)
+ coerce_to(Types::Boolean, Prove)
coerce_to(Types::Array, TryMethods[:to_a, :to_ary, :to_array])
coerce_to(Types::Date, TryMethods[:to_date])
coerce_to(Types::DateTime, TryMethods[:to_datetime])
coerce_to(Types::Float, TryMethods[:to_f, :to_float])
coerce_to(Types::Hash, TryMethods[:to_h, :to_hash])