Method: Arbre::TextNode.from_string
- Defined in:
- lib/arbre/text_node.rb
.from_string(string) ⇒ Object
Builds a raw element from a string.
11 12 13 |
# File 'lib/arbre/text_node.rb', line 11 def self.from_string(string) new.tap { |node| node.build!(string) } end |