Sha256: 3929aeb1f7a712187faf71c9b6ac8eb04bedcf83faa4f0e1f0530d43db291a55
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
# shortcut for JsonExporter.define(name) {} # JsonExporter :page do # prop :name # end # shortcut for JsonExporter.new(object).render # JsonExporter Page.first def JsonExporter name_or_object, opts = {}, &block if block JsonExporter.define name_or_object, &block else JsonExporter.new(name_or_object, opts).render end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json-exporter-0.3.2 | ./lib/json-exporter/klass_func.rb |