File tree 1 file changed +0
-26
lines changed
1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,6 @@ class Object
103
103
def to_json
104
104
to_s . to_json
105
105
end
106
-
107
- # FIXME: remove this
108
- def as_json
109
- nil
110
- end
111
106
end
112
107
113
108
class Array
@@ -122,15 +117,9 @@ def to_json
122
117
return '[' + result.join(', ') + ']';
123
118
}
124
119
end
125
-
126
120
end
127
121
128
122
class Boolean
129
- # FIXME: remove this
130
- def as_json
131
- self
132
- end
133
-
134
123
def to_json
135
124
`(self == true) ? 'true' : 'false'`
136
125
end
@@ -152,33 +141,18 @@ def to_json
152
141
end
153
142
154
143
class NilClass
155
- # FIXME: remove this
156
- def as_json
157
- self
158
- end
159
-
160
144
def to_json
161
145
'null'
162
146
end
163
147
end
164
148
165
149
class Numeric
166
- # FIXME: remove this
167
- def as_json
168
- self
169
- end
170
-
171
150
def to_json
172
151
`self.toString()`
173
152
end
174
153
end
175
154
176
155
class String
177
- # FIXME: remove this
178
- def as_json
179
- self
180
- end
181
-
182
156
alias to_json inspect
183
157
end
184
158
You can’t perform that action at this time.
0 commit comments