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.



114
115
116
117
118
# File 'lib/h2g_ajaxchat.rb', line 114

def initialize(obj)

  @obj = obj

end

Instance Attribute Details

#reqObject

Returns the value of attribute req.



112
113
114
# File 'lib/h2g_ajaxchat.rb', line 112

def req
  @req
end

Instance Method Details

#redirect(s) ⇒ Object



120
121
122
# File 'lib/h2g_ajaxchat.rb', line 120

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