Sha256: f9cc57755e26d84650849c08cb1880beabc2ad561559ded605f1a5f77de3cced

Contents?: true

Size: 156 Bytes

Versions: 4

Compression:

Stored size: 156 Bytes

Contents

class Object
  def to_query(key)
    "#{key.to_s.url_encode}=#{to_s.url_encode}"
  end

  def to_json(pretty=nil)
    JSON.generate(self, pretty)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
under-os-1.3.0 lib/under_os/core/object.rb
under-os-1.2.1 lib/under_os/core/object.rb
under-os-1.2.0 lib/under_os/core/object.rb
under-os-1.1.0 lib/under_os/core/object.rb