Class: Raw::ElementsFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/raw/compiler/filter/elements.rb

Overview

A filter that transforms user defined Elements. Elements are custom tags that are used as macros or to implement skins.

Example

<Page>

the

</Page>

Defined Under Namespace

Classes: Listener

Instance Method Summary collapse

Instance Method Details

#apply(source) ⇒ Object

Apply the filter.



158
159
160
161
162
# File 'lib/raw/compiler/filter/elements.rb', line 158

def apply(source)
  listen = Listener.new
  REXML::Document.parse_stream(source, listen)
  return listen.buffer
end