File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def as_json(*)
23
23
end
24
24
25
25
# return the JSON value
26
- def to_json ( *)
27
- as_json . to_json
26
+ def to_json ( *args )
27
+ as_json . to_json ( * args )
28
28
end
29
29
end
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def as_json(*)
23
23
end
24
24
25
25
# Stores class name (Complex) along with real value <tt>r</tt> and imaginary value <tt>i</tt> as JSON string
26
- def to_json ( *)
27
- as_json . to_json
26
+ def to_json ( *args )
27
+ as_json . to_json ( * args )
28
28
end
29
29
end
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def as_json(*)
22
22
end
23
23
24
24
# Stores class name (Rational) along with numerator value <tt>n</tt> and denominator value <tt>d</tt> as JSON string
25
- def to_json ( *)
26
- as_json . to_json
25
+ def to_json ( *args )
26
+ as_json . to_json ( * args )
27
27
end
28
28
end
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def as_json(*)
24
24
25
25
# Stores class name (Regexp) with options <tt>o</tt> and source <tt>s</tt>
26
26
# (Regexp or String) as JSON string
27
- def to_json ( *)
28
- as_json . to_json
27
+ def to_json ( *args )
28
+ as_json . to_json ( * args )
29
29
end
30
30
end
You can’t perform that action at this time.
0 commit comments