Class: Klods::RawHtml
- Inherits:
-
Object
- Object
- Klods::RawHtml
- Defined in:
- lib/klods/node.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
readonly
Returns the value of attribute html.
Instance Method Summary collapse
-
#initialize(html) ⇒ RawHtml
constructor
A new instance of RawHtml.
- #to_s ⇒ Object
- #to_str ⇒ Object
Constructor Details
#initialize(html) ⇒ RawHtml
Returns a new instance of RawHtml.
4 |
# File 'lib/klods/node.rb', line 4 def initialize(html) = @html = html.to_s |
Instance Attribute Details
#html ⇒ Object (readonly)
Returns the value of attribute html.
3 4 5 |
# File 'lib/klods/node.rb', line 3 def html @html end |
Instance Method Details
#to_s ⇒ Object
5 |
# File 'lib/klods/node.rb', line 5 def to_s = @html |
#to_str ⇒ Object
6 |
# File 'lib/klods/node.rb', line 6 def to_str = @html |