# File lib/ruby-vpi/core/struct.rb, line 28 def self.detect_format aValue if aValue.respond_to? :to_int VpiIntVal elsif aValue.respond_to? :to_float VpiRealVal elsif aValue.respond_to? :to_str VpiStringVal elsif aValue.is_a? S_vpi_time VpiTimeVal elsif aValue.is_a? S_vpi_vecval VpiVectorVal elsif aValue.is_a? S_vpi_strengthval VpiStrengthVal end end