Class: WebPage

Inherits:
Object
  • Object
show all
Defined in:
lib/h2g_ajaxchat.rb

Direct Known Subclasses

Index, Login, Logout, LogoutPost

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h = {}) ⇒ WebPage

Returns a new instance of WebPage.



167
168
169
# File 'lib/h2g_ajaxchat.rb', line 167

def initialize( h={} )
  @h = h
end

Instance Attribute Details

#cssObject

Returns the value of attribute css.



165
166
167
# File 'lib/h2g_ajaxchat.rb', line 165

def css
  @css
end

#htmlObject

Returns the value of attribute html.



165
166
167
# File 'lib/h2g_ajaxchat.rb', line 165

def html
  @html
end

#jsObject

Returns the value of attribute js.



165
166
167
# File 'lib/h2g_ajaxchat.rb', line 165

def js
  @js
end

#sObject

Returns the value of attribute s.



165
166
167
# File 'lib/h2g_ajaxchat.rb', line 165

def s
  @s
end

Instance Method Details

#to_cssObject



171
172
# File 'lib/h2g_ajaxchat.rb', line 171

def to_css()
end

#to_htmlObject



174
175
176
177
178
# File 'lib/h2g_ajaxchat.rb', line 174

def to_html()
  b = binding

  ERB.new(html()).result(b)    
end

#to_jsObject



180
181
182
# File 'lib/h2g_ajaxchat.rb', line 180

def to_js()
  js()
end

#to_sObject



188
189
190
# File 'lib/h2g_ajaxchat.rb', line 188

def to_s()
  s()
end