lib/ably/modules/state_emitter.rb in ably-1.2.2 vs lib/ably/modules/state_emitter.rb in ably-1.2.3
- old
+ new
@@ -33,16 +33,18 @@
#
module StateEmitter
# Current state {Ably::Modules::Enum}
#
# @return [Symbol] state
+ #
def state
STATE(@state)
end
# Evaluates if check_state matches current state
#
# @return [Boolean]
+ #
def state?(check_state)
state == check_state
end
# Set the current state {Ably::Modules::Enum}