Class: Logout
Instance Attribute Summary
Attributes inherited from WebPage
Instance Method Summary collapse
- #html ⇒ Object
-
#initialize(h) ⇒ Logout
constructor
A new instance of Logout.
- #to_html ⇒ Object
Methods inherited from WebPage
Constructor Details
#initialize(h) ⇒ Logout
Returns a new instance of Logout.
314 315 316 |
# File 'lib/h2g_ajaxchat.rb', line 314 def initialize(h) @name = :logout end |
Instance Method Details
#html ⇒ Object
318 319 320 321 322 323 324 325 326 327 328 329 330 |
# File 'lib/h2g_ajaxchat.rb', line 318 def html() @html ||= ' <div id="logoutform"> <form action="logout" method="post"> <p>Are you sure you want to logout?</p> <input type="submit" name="enter" id="enter" value="Yes" /> </form> <a href="index">no, return to the chat page</a> </div> ' end |
#to_html ⇒ Object
332 333 334 |
# File 'lib/h2g_ajaxchat.rb', line 332 def to_html() @html end |