Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/adsense_for_search.rb
Instance Method Summary collapse
Instance Method Details
#to_json2 ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/adsense_for_search.rb', line 11 def to_json2 result = [] each do |key, value| string = "\"#{key}\":" string << ((value.class.to_s == "String") ? "\"#{value}\"" : "#{value}") result << string end "{#{result.join(',')}}" end |