Class: Array
Overview
Extend the ruby core
Class Method Summary collapse
Class Method Details
.cast_from(object) ⇒ Object
142 143 144 145 146 147 |
# File 'lib/more/typecast.rb', line 142 def cast_from(object) return super rescue TypeCastException return object.to_a if object.respond_to? :to_a raise end |