Class: DummyRws
- Inherits:
-
Object
- Object
- DummyRws
- Defined in:
- lib/h2g_ajaxchat.rb
Instance Attribute Summary collapse
-
#req ⇒ Object
Returns the value of attribute req.
Instance Method Summary collapse
-
#initialize(obj) ⇒ DummyRws
constructor
A new instance of DummyRws.
- #redirect(s) ⇒ Object
Constructor Details
#initialize(obj) ⇒ DummyRws
Returns a new instance of DummyRws.
126 127 128 129 130 |
# File 'lib/h2g_ajaxchat.rb', line 126 def initialize(obj) @obj = obj end |
Instance Attribute Details
#req ⇒ Object
Returns the value of attribute req.
124 125 126 |
# File 'lib/h2g_ajaxchat.rb', line 124 def req @req end |
Instance Method Details
#redirect(s) ⇒ Object
132 133 134 |
# File 'lib/h2g_ajaxchat.rb', line 132 def redirect(s) @obj.method(s.to_sym).call end |