Class: Dryml::Parser::Text

Inherits:
REXML::Text
  • Object
show all
Defined in:
lib/dryml/parser/text.rb

Instance Method Summary collapse

Instance Method Details

#parent=(parent) ⇒ Object



5
6
7
8
9
# File 'lib/dryml/parser/text.rb', line 5

def parent=(parent)
  # Bypass immediate super
  REXML::Child.instance_method(:parent=).bind(self).call(parent)
  Text.check(@string, /</, nil) if @raw and @parent && Text.respond_to?(:check)
end