lib/hexapdf/content/parser.rb in hexapdf-0.12.2 vs lib/hexapdf/content/parser.rb in hexapdf-0.12.3
- old
+ new
@@ -175,10 +175,10 @@
# Note: The parameters array is reused for each processed operator, so duplicate it if
# necessary.
def parse(contents, processor = nil, &block) #:yields: object, params
raise ArgumentError, "Argument processor or block is needed" if processor.nil? && block.nil?
if processor.nil?
- block.singleton_class.alias_method(:process, :call)
+ block.singleton_class.send(:alias_method, :process, :call)
processor = block
end
tokenizer = Tokenizer.new(contents, raise_on_eos: true)
params = []