Class: ApplicationCable::Channel

Inherits:
ActionCable::Channel::Base
  • Object
show all
Defined in:
lib/activestate/channel.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](subject) ⇒ Object



54
55
56
# File 'lib/activestate/channel.rb', line 54

def self.[](subject)
  ScopedChannel.new(self, subject)
end

Instance Method Details

#state(*path) ⇒ Object



58
59
60
# File 'lib/activestate/channel.rb', line 58

def state(*path)
  State.new(nil, self, path.join('.'))
end