Module: Mooncell::Respond::ClassMethods Private

Defined in:
lib/mooncell/respond.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#broadcast(value = true) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Set broadcast

Parameters:

  • value (TureClass, FalseClass) (defaults to: true)

    should broadcast to all players

Since:

  • 0.1.0



43
44
45
# File 'lib/mooncell/respond.rb', line 43

def broadcast(value = true)
  @broadcast = value == true
end

#broadcast?TureClass, FalseClass

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get broadcast

Returns:

  • (TureClass, FalseClass)

    is a broadcast respond

Since:

  • 0.1.0



53
54
55
# File 'lib/mooncell/respond.rb', line 53

def broadcast?
  @broadcast == true
end