summaryrefslogtreecommitdiff
path: root/ext/json/lib/json/add/range.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/lib/json/add/range.rb')
-rw-r--r--ext/json/lib/json/add/range.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/lib/json/add/range.rb b/ext/json/lib/json/add/range.rb
index d2a5b33..e61e553 100644
--- a/ext/json/lib/json/add/range.rb
+++ b/ext/json/lib/json/add/range.rb
@@ -16,7 +16,7 @@ class Range
def as_json(*)
{
JSON.create_id => self.class.name,
- 'a' => [ first, self.end, exclude_end? ]
+ 'a' => [ first, last, exclude_end? ]
}
end