Class: Coradoc::Transformer

Inherits:
Parslet::Transform
  • Object
show all
Defined in:
lib/coradoc/transformer.rb

Defined Under Namespace

Classes: NamedAttribute

Class Method Summary collapse

Class Method Details

.transform(syntax_tree) ⇒ Object

rule(unparsed: simple(:text)) do

text.to_s

end



458
459
460
# File 'lib/coradoc/transformer.rb', line 458

def self.transform(syntax_tree)
  new.apply(syntax_tree)
end