RbSymbol
Swift
public struct RbSymbol: RbObjectConvertible, Hashable
extension RbSymbol: CustomStringConvertible
Represent a Ruby symbol.
Ruby symbols are written :name
. If in Ruby you would write:
obj.meth(:value)
Then the RubyGateway version is:
try obj.call("meth", args: [RbSymbol("value")])
Topics
init(String)
init(String)
Create from the name for the symbol. No leading colon.
Declaration
Swift
public init(_ name: String)
var rubyObject: RbObject
var rubyObject: RbObject
CustomStringConvertible
var description: String
var description: String