Class: WebPage
- Inherits:
-
Object
- Object
- WebPage
- Defined in:
- lib/h2g_ajaxchat.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#css ⇒ Object
Returns the value of attribute css.
-
#html ⇒ Object
Returns the value of attribute html.
-
#js ⇒ Object
Returns the value of attribute js.
-
#s ⇒ Object
Returns the value of attribute s.
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ WebPage
constructor
A new instance of WebPage.
- #to_css ⇒ Object
- #to_html ⇒ Object
- #to_js ⇒ Object
- #to_s ⇒ Object
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
#css ⇒ Object
Returns the value of attribute css.
165 166 167 |
# File 'lib/h2g_ajaxchat.rb', line 165 def css @css end |
#html ⇒ Object
Returns the value of attribute html.
165 166 167 |
# File 'lib/h2g_ajaxchat.rb', line 165 def html @html end |
#js ⇒ Object
Returns the value of attribute js.
165 166 167 |
# File 'lib/h2g_ajaxchat.rb', line 165 def js @js end |
#s ⇒ Object
Returns the value of attribute s.
165 166 167 |
# File 'lib/h2g_ajaxchat.rb', line 165 def s @s end |
Instance Method Details
#to_css ⇒ Object
171 172 |
# File 'lib/h2g_ajaxchat.rb', line 171 def to_css() end |
#to_html ⇒ Object
174 175 176 177 178 |
# File 'lib/h2g_ajaxchat.rb', line 174 def to_html() b = binding ERB.new(html()).result(b) end |
#to_js ⇒ Object
180 181 182 |
# File 'lib/h2g_ajaxchat.rb', line 180 def to_js() js() end |
#to_s ⇒ Object
188 189 190 |
# File 'lib/h2g_ajaxchat.rb', line 188 def to_s() s() end |