diff options
author | Kouhei Sutou <kou@clear-code.com> | 2015-05-21 17:09:19 +0900 |
---|---|---|
committer | Kouhei Sutou <kou@clear-code.com> | 2015-05-21 17:09:19 +0900 |
commit | c988b1717417d9eb6eb9b691fc15ca91aceacf2b (patch) | |
tree | fa27da0be2251b6487e1f0b87c7faefbaa99b89f /lib/ffi_yajl | |
parent | 4793b2818f3d5f38b8a9fcc8b479e10cfcfa2c02 (diff) | |
download | ffi-yajl-c988b1717417d9eb6eb9b691fc15ca91aceacf2b.tar.gz |
Suppress method redefined warnings
% FORCE_FFI_YAJL=ffi ruby -w -I lib -e 'require "ffi_yajl"'
lib/ffi_yajl/parser.rb:33: warning: method redefined; discarding old stack
lib/ffi_yajl/parser.rb:40: warning: method redefined; discarding old key_stack
...
Diffstat (limited to 'lib/ffi_yajl')
-rw-r--r-- | lib/ffi_yajl/parser.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ffi_yajl/parser.rb b/lib/ffi_yajl/parser.rb index 5b9a0c9..9008a3e 100644 --- a/lib/ffi_yajl/parser.rb +++ b/lib/ffi_yajl/parser.rb @@ -23,7 +23,8 @@ module FFI_Yajl class ParseError < StandardError; end class Parser - attr_accessor :stack, :key_stack, :key, :finished + attr_writer :stack, :key_stack + attr_accessor :key, :finished attr_accessor :opts |