Module: Zafu

Defined in:
lib/zafu/all.rb,
lib/zafu/info.rb,
lib/zafu/markup.rb,
lib/zafu/parser.rb,
lib/zafu/handler.rb,
lib/zafu/compiler.rb,
lib/zafu/security.rb,
lib/zafu/template.rb,
lib/zafu/mock_helper.rb,
lib/zafu/test_helper.rb,
lib/zafu/node_context.rb,
lib/zafu/ordered_hash.rb,
lib/zafu/process/ajax.rb,
lib/zafu/process/html.rb,
lib/zafu/view_methods.rb,
lib/zafu/parsing_rules.rb,
lib/zafu/process/forms.rb,
lib/zafu/process/context.rb,
lib/zafu/controller_methods.rb,
lib/zafu/process/conditional.rb,
lib/zafu/process/ruby_less_processing.rb

Defined Under Namespace

Modules: ControllerMethods, ParsingRules, Process, Security, TestHelper, ViewMethods Classes: Handler, Markup, MockHelper, NodeContext, OrderedHash, Parser, Template

Constant Summary collapse

All =
[
  Zafu::ParsingRules,
  Zafu::Process::HTML,
  Zafu::Process::Context,
  Zafu::Process::Conditional,
  Zafu::Process::RubyLessProcessing,
  Zafu::Process::Ajax,
  Zafu::Process::Forms,
  Zafu::Security,
]
VERSION =
'0.8.6'
Compiler =
Zafu.parser_with_rules(Zafu::All)

Class Method Summary collapse

Class Method Details

.parser_with_rules(*modules) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/zafu/parser.rb', line 3

def self.parser_with_rules(*modules)
  parser = Class.new(Parser)
  modules.flatten.each do |mod|
    parser.send(:include, mod)
  end
  parser
end