lib/pubnub/error.rb in pubnub-3.8.5 vs lib/pubnub/error.rb in pubnub-4.0.0beta1
- old
+ new
@@ -1,8 +1,7 @@
# Toplevel Pubnub module.
module Pubnub
# Some custom pubnub errors
- # TODO: yardoc
class Error < StandardError
attr_reader :env, :message
def initialize(env = {})
unless env.instance_of? Hash