Class: Logout

Inherits:
WebPage show all
Defined in:
lib/h2g_ajaxchat.rb

Instance Attribute Summary

Attributes inherited from WebPage

#css, #js, #s

Instance Method Summary collapse

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

#htmlObject



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