Sha256: 3065ae3f32efea2a4a7dd95d980dfdb5556d4646bbf3d2185deac0186afc8280

Contents?: true

Size: 553 Bytes

Versions: 10

Compression:

Stored size: 553 Bytes

Contents

require 'pickle/version'
require 'pickle/adapter'
require 'pickle/config'
require 'pickle/parser'
require 'pickle/session'
require 'pickle/session/parser'

# make the parser aware of models in the session (for fields refering to models)
Pickle::Parser.send :include, Pickle::Session::Parser

module Pickle
  class << self
    def config
      @config ||= Config.new
    end

    def configure(&block)
      config.configure(&block)
    end

    def parser(options = {})
      @parser ||= Parser.new({:config => config}.merge(options))
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pickle-0.9.0 lib/pickle.rb
pickle-0.8.0 lib/pickle.rb
pickle-0.7.2 lib/pickle.rb
pickle-0.7.1 lib/pickle.rb
pickle-0.7.0 lib/pickle.rb
pickle-0.6.2 lib/pickle.rb
pickle-0.6.1 lib/pickle.rb
pickle-0.6.0 lib/pickle.rb
pickle-0.5.5 lib/pickle.rb
pickle-0.5.4 lib/pickle.rb