Ruby with type