Method: SXRB::Proxy#on_characters

Defined in:
lib/sxrb/proxy.rb

#on_characters {|String| ... } ⇒ nil

Defines a callback that is invoked whenever anonymous text node within self is encountered.

Yields:

  • (String)

    block receives raw content of parsed data in form of string object.

Returns:

  • (nil)


95
96
97
# File 'lib/sxrb/proxy.rb', line 95

def on_characters(&block)
  @callback_tree.add_callback(:characters, @current_path, &block)
end