Module: Clojure::Ratio

Defined in:
lib/cljdotrb/number.rb

Instance Method Summary collapse

Instance Method Details

#to_rubyObject



28
29
30
31
# File 'lib/cljdotrb/number.rb', line 28

def to_ruby
  a = to_a
  Rational(a[1].to_i, a[3].to_i)
end