class WebPage
Attributes
css[RW]
html[RW]
js[RW]
s[RW]
Public Class Methods
new( h={} )
click to toggle source
# File lib/h2g_ajaxchat.rb, line 167 def initialize( h={} ) @h = h end
Public Instance Methods
to_css()
click to toggle source
# File lib/h2g_ajaxchat.rb, line 171 def to_css() end
to_html()
click to toggle source
# File lib/h2g_ajaxchat.rb, line 174 def to_html() b = binding ERB.new(html()).result(b) end
to_js()
click to toggle source
# File lib/h2g_ajaxchat.rb, line 180 def to_js() js() end
to_s()
click to toggle source
# File lib/h2g_ajaxchat.rb, line 188 def to_s() s() end
Protected Instance Methods
html_template()
click to toggle source
# File lib/h2g_ajaxchat.rb, line 194 def html_template() <<EOF <?xml version="1.0" encoding="UTF-8"?> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"/> <style> #{to_css()} </style> </head> #{to_html()} <script> #{to_js()} </script> </body> </html> EOF end