RbObjectConvertible
Swift
public protocol RbObjectConvertible
Protocol adopted by types that can be converted to and from RbObject
s.
Topics
init?(RbObject)
init?(RbObject)
Try to create an instance of this type from the Ruby object.
Returns nil
if the object cannot be converted, for example a
complete type mismatch or a numeric type that won’t fit.
Declaration
Swift
init?(_ value: RbObject)
var rubyObject: RbObject
var rubyObject: RbObject
A fresh Ruby object matching the current state of the Swift object.
If Ruby is not working (VM setup failure) then the vended object is some invalid value. The VM setup failure is reported at the point the object is used.
Declaration
Swift
var rubyObject: RbObject { get }