Class Ruote::Parser
In: lib/ruote/parser.rb
Parent: Object

A process definition parser.

Can parse XML, JSON, Ruby (and more) process definition representations.

Methods

atts_to_ruby   builder   new   parse   parse   remote?   ruby_eval   to_json   to_ruby   to_xml  

Public Class methods

Class method for parsing process definition (XML, Ruby, from file or from a string, …) to syntax trees. Used by ruote-fluo for example.

Returns true if the defintion is a remote URI

Turns the process definition tree (ruote syntax tree) to a JSON String.

Turns the given process definition tree (ruote syntax tree) to a Ruby process definition (a String containing that ruby process definition).

Mainly used by ruote-fluo.

Turns the given process definition tree (ruote syntax tree) to an XML String.

Mainly used by ruote-fluo.

Protected Class methods

A convenience method when building XML

Public Instance methods

Turns the input into a ruote syntax tree (raw process definition). This method is used by engine.launch(x) for example.

Protected Instance methods

Evaluates the ruby string in the code, but at fist, thanks to the treechecker, makes sure it doesn‘t code malicious ruby code (at least tries very hard).

[Validate]