Class Iowa::BindingsParser
In: src/BindingsParser.rb
Parent: Object

Parse through binding declarations to resolve bindings. Resolved bindings are stored within an object variable, @bindings.

Methods

bindings   new   processMatch  

Constants

MainPattern = /([\w.]+)\s*(:\s*(\w+)\s*)?[{](.*?)^\s*[}]/m
BodyPattern = /(\w+)\s*=\s*(.+)/
TrimPattern = /\s*$/

Public Class methods

Apply the MainPattern to the binding data, passing matched information to processMatch().

Public Instance methods

Return the Hash of bindings.

Create the defined binding.

[Validate]