2009-07-30 5 views

답변

-1

그것은 나에게 매우 우아한 소리하지 않지만, 전무

class IgnoredObject 
    def to_yaml 
    nil 
    end 
end 
+0

'to_yaml '인수 잘못된 번호 (1 0의 경우) (ArgumentError); 그런 다음 그것을 수정 한 후 - '방출': 잘못된 인수 유형 nil (예상 데이터) (TypeError) – viraptor

0

가 함께 해결 당신이 덤프 해당 개체를 확장 할 수 :

class ClassToNil 
    def to_yaml 
    nil.to_yaml 
    end 
end 
관련 문제