gxg-web-client/gxg/core/prediction.rb
2021-11-16 08:58:51 -08:00

14 lines
309 B
Ruby

module Rubinius
class Prediction
def inspect
"#<#{self.class.name}:0x#{object_id.to_s(16)} valid=#{valid?}>"
end
alias_method :to_s, :inspect
def valid?
Rubinius.primitive :prediction_valid_p
raise PrimitiveFailure, "Prediction#valid? primitive failed"
end
end
end