diff options
Diffstat (limited to 'lib/json/add/rational.rb')
-rw-r--r-- | lib/json/add/rational.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/json/add/rational.rb b/lib/json/add/rational.rb index 356940b..6be4034 100644 --- a/lib/json/add/rational.rb +++ b/lib/json/add/rational.rb @@ -22,7 +22,7 @@ class Rational end # Stores class name (Rational) along with numerator value <tt>n</tt> and denominator value <tt>d</tt> as JSON string - def to_json(*) - as_json.to_json + def to_json(*args) + as_json.to_json(*args) end end |