Class: Logout
Instance Attribute Summary
Attributes inherited from WebPage
Instance Method Summary collapse
- #html ⇒ Object
-
#initialize(h = {}) ⇒ Logout
constructor
A new instance of Logout.
Methods inherited from WebPage
#to_css, #to_html, #to_js, #to_s
Constructor Details
#initialize(h = {}) ⇒ Logout
Returns a new instance of Logout.
335 336 337 |
# File 'lib/h2g_ajaxchat.rb', line 335 def initialize(h={}) end |
Instance Method Details
#html ⇒ Object
339 340 341 342 343 344 345 346 347 348 349 350 351 |
# File 'lib/h2g_ajaxchat.rb', line 339 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 |