Class: Swordfish::Node::Raw
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#append(node) ⇒ Object
Override Base append because a raw node should never have children.
- #to_html ⇒ Object
Methods inherited from Base
#clear_children, #find_nodes_by_type, #inform!, #initialize, #replace, #replace_with, #stylize, #wrap_children
Constructor Details
This class inherits a constructor from Swordfish::Node::Base
Instance Method Details
#append(node) ⇒ Object
Override Base append because a raw node should never have children
9 10 11 |
# File 'lib/swordfish/nodes/raw.rb', line 9 def append(node) raise BadContentError end |
#to_html ⇒ Object
13 14 15 |
# File 'lib/swordfish/nodes/raw.rb', line 13 def to_html @content end |