Class: DummyRws

Inherits:
Object
  • Object
show all
Defined in:
lib/h2g_ajaxchat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ac = nil, rsc: nil) ⇒ DummyRws

Returns a new instance of DummyRws.



152
153
154
155
156
# File 'lib/h2g_ajaxchat.rb', line 152

def initialize(ac=nil, rsc: nil)

  @ac, @rsc = ac, rsc

end

Instance Attribute Details

#acObject

Returns the value of attribute ac.



149
150
151
# File 'lib/h2g_ajaxchat.rb', line 149

def ac
  @ac
end

#reqObject

Returns the value of attribute req.



149
150
151
# File 'lib/h2g_ajaxchat.rb', line 149

def req
  @req
end

#rscObject (readonly)

Returns the value of attribute rsc.



150
151
152
# File 'lib/h2g_ajaxchat.rb', line 150

def rsc
  @rsc
end

Instance Method Details

#redirect(s) ⇒ Object



158
159
160
# File 'lib/h2g_ajaxchat.rb', line 158

def redirect(s)
  @ac.method(s.to_sym).call
end