Class: DummyRws
- Inherits:
-
Object
- Object
- DummyRws
- Defined in:
- lib/h2g_ajaxchat.rb
Instance Attribute Summary collapse
-
#ac ⇒ Object
Returns the value of attribute ac.
-
#req ⇒ Object
Returns the value of attribute req.
-
#rsc ⇒ Object
readonly
Returns the value of attribute rsc.
Instance Method Summary collapse
-
#initialize(ac = nil, rsc: nil) ⇒ DummyRws
constructor
A new instance of DummyRws.
- #redirect(s) ⇒ Object
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
#ac ⇒ Object
Returns the value of attribute ac.
149 150 151 |
# File 'lib/h2g_ajaxchat.rb', line 149 def ac @ac end |
#req ⇒ Object
Returns the value of attribute req.
149 150 151 |
# File 'lib/h2g_ajaxchat.rb', line 149 def req @req end |
#rsc ⇒ Object (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 |