From 0b15820e245f4048d1bcd29cd60693e4e211ab43 Mon Sep 17 00:00:00 2001 From: Florian Frank Date: Wed, 5 Jan 2011 00:12:51 +0100 Subject: renamed :match argument to :match_string --- lib/json/pure/parser.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/json/pure/parser.rb') diff --git a/lib/json/pure/parser.rb b/lib/json/pure/parser.rb index 6a0192c..8043e67 100644 --- a/lib/json/pure/parser.rb +++ b/lib/json/pure/parser.rb @@ -119,7 +119,7 @@ module JSON @create_id = opts[:create_id] || JSON.create_id @object_class = opts[:object_class] || Hash @array_class = opts[:array_class] || Array - @json_match = opts[:match] # @match is an ivar in rbx's strscan + @match_string = opts[:match_string] end alias source string @@ -189,8 +189,8 @@ module JSON if string.respond_to?(:force_encoding) string.force_encoding(::Encoding::UTF_8) end - if @create_additions and @json_match - for (regexp, klass) in @json_match + if @create_additions and @match_string + for (regexp, klass) in @match_string klass.json_creatable? or next string =~ regexp and return klass.json_create(string) end -- cgit v1.2.1