class Psych::AnchorNotDefined

为了向后兼容,继承了 ‘BadAlias` 类

公共类方法

new(anchor_name) 点击切换源代码
调用父类方法 Exception::new
# File ext/psych/lib/psych/exception.rb, line 18
def initialize anchor_name
  super "An alias referenced an unknown anchor: #{anchor_name}"
end