mirror of
https://github.com/mistergibson/gxg-web-client.git
synced 2026-08-15 11:34:29 -07:00
14 lines
309 B
Ruby
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
|