module DCI
Public Class Methods
Multiplayer(obj)
click to toggle source
The intend of this method is to create something similar to Array(): When called with a Multiplayer
object, returns the object unmodified. Otherwise, retuns a new Multiplayer
object wrapping the given argument.
# File lib/drsi/dci/multiplayer.rb, line 6 def self.Multiplayer(obj) obj.is_a?(::DCI::Multiplayer) ? obj : Multiplayer.new(obj) end