vfeskov_edu_gem 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ class Object
|
|
2
2
|
def to_json
|
3
3
|
result = "{";
|
4
4
|
self.instance_variables.each do |varname|
|
5
|
-
result += '"' + varname.
|
5
|
+
result += '"' + varname.to_s + '":"'+self.instance_variable_get(varname)+'"'
|
6
6
|
end
|
7
7
|
result += "}"
|
8
8
|
return result
|