Module: DCI
- Defined in:
- lib/drsi/dci/role.rb,
lib/drsi/dci/context.rb,
lib/drsi/dci/multiplayer.rb
Defined Under Namespace
Modules: Role Classes: Context, Multiplayer
Class Method Summary collapse
-
.Multiplayer(obj) ⇒ Object
The intend of this method is to create something similar to Array(): When called with a Multiplayer object, returns the object unmodified.
Class Method Details
.Multiplayer(obj) ⇒ Object
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.
6 7 8 |
# File 'lib/drsi/dci/multiplayer.rb', line 6 def self.Multiplayer(obj) obj.is_a?(::DCI::Multiplayer) ? obj : Multiplayer.new(obj) end |