Class: DummyRws

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ DummyRws

Returns a new instance of DummyRws.



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

def initialize(obj)

  @obj = obj

end

Instance Attribute Details

#reqObject

Returns the value of attribute req.



147
148
149
# File 'lib/h2g_ajaxchat.rb', line 147

def req
  @req
end

Instance Method Details

#redirect(s) ⇒ Object



155
156
157
# File 'lib/h2g_ajaxchat.rb', line 155

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