Read scheme in ruby