class Gem::SafeMarshal::Visitors::ToRuby::RationalCompat
公共实例方法
marshal_load(s) 点击切换源代码
# File rubygems/safe_marshal/visitors/to_ruby.rb, line 295 def marshal_load(s) num, den = s raise ArgumentError, "Expected 2 ints" unless s.size == 2 && num.is_a?(Integer) && den.is_a?(Integer) Rational(num, den) end