Skip to content

Commit

Permalink
Suppress method redefined warnings
Browse files Browse the repository at this point in the history
    % 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
    ...
  • Loading branch information
kou committed May 21, 2015
1 parent 4793b28 commit c988b17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ffi_yajl/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c988b17

Please sign in to comment.