Class: Psych::Pure::Parser::Debug
- Inherits:
-
Module
- Object
- Module
- Psych::Pure::Parser::Debug
- Defined in:
- lib/psych/pure.rb
Instance Method Summary collapse
-
#initialize(methods) ⇒ Debug
constructor
A new instance of Debug.
Constructor Details
#initialize(methods) ⇒ Debug
4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 |
# File 'lib/psych/pure.rb', line 4076 def initialize(methods) methods.each do |method| prefix = method.name.delete_prefix("parse_") define_method(method) do |*args| norm = args.map { |arg| arg.nil? ? "nil" : arg }.join(",") $stderr.puts(">>> #{prefix}(#{norm})") super(*args) end end end |