# File lib/awesome_print/ext/ostruct.rb, line 13 def cast_with_ostruct(object, type) cast = cast_without_ostruct(object, type) if (defined?(::OpenStruct)) && (object.is_a?(::OpenStruct)) cast = :open_struct_instance end cast end