Class: Login
Instance Attribute Summary
Attributes inherited from WebPage
Instance Method Summary collapse
- #html ⇒ Object
-
#initialize(h = {}) ⇒ Login
constructor
A new instance of Login.
Methods inherited from WebPage
#to_css, #to_html, #to_js, #to_s
Constructor Details
#initialize(h = {}) ⇒ Login
Returns a new instance of Login.
311 312 313 |
# File 'lib/h2g_ajaxchat.rb', line 311 def initialize(h={}) end |
Instance Method Details
#html ⇒ Object
315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/h2g_ajaxchat.rb', line 315 def html() @html ||= ' <div id="loginform"> <form action="login" method="post"> <p>Please enter your name to continue:</p> <label for="name">Name:</label> <input type="text" name="name" id="name" autofocus="true"/> <input type="submit" name="enter" id="enter" value="Enter" /> </form> </div> ' end |