Title / Description
Code class Range def to_json(*a) { 'json_class' => self.class.name, 'data' => [ first, last, exclude_end? ] }.to_json(*a) end def self.json_create(o) new(*o['data']) end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code