VCB Value shows value in inch but I wish it shows in SU unit. Can you help me for it? Thank you in advance.
No! It shows a string what you are passing to it.
The Length.html#inspect-instance_method is used to retrieve an unformatted string for the length, which is the length in inches, regardless of the user’s model unit settings.
The Length.html#to_s-instance_method format a length as a String using the current units formatting settings for the model. (So if the user’s model is set to feet, this method will return a nicely formatted length in feet.)
Thank you Dezmo. #to_s method is really helpful.