### Home Classes Methods

### In Files

- lib/ramaze.rb
- lib/ramaze/helper.rb
- lib/ramaze/app.rb
- lib/ramaze/reloader.rb
- lib/ramaze/response.rb
- lib/ramaze/bin/helper.rb
- lib/ramaze/bin/start.rb
- lib/ramaze/bin/status.rb
- lib/ramaze/bin/console.rb
- lib/ramaze/bin/runner.rb
- lib/ramaze/bin/create.rb
- lib/ramaze/bin/restart.rb
- lib/ramaze/bin/stop.rb
- lib/ramaze/view.rb
- lib/ramaze/spec/helper/pretty_output.rb
- lib/ramaze/app_graph.rb
- lib/ramaze/setup.rb
- lib/ramaze/cache/memcache.rb
- lib/ramaze/cache/redis.rb
- lib/ramaze/cache/localmemcache.rb
- lib/ramaze/cache/lru.rb
- lib/ramaze/cache/sequel.rb
- lib/ramaze/controller.rb
- lib/ramaze/log/xosd.rb
- lib/ramaze/log/analogger.rb
- lib/ramaze/log/knotify.rb
- lib/ramaze/log/syslog.rb
- lib/ramaze/log/growl.rb
- lib/ramaze/log/logger.rb
- lib/ramaze/log/informer.rb
- lib/ramaze/log/hub.rb
- lib/ramaze/log/rotatinginformer.rb
- lib/ramaze/log/logging.rb
- lib/ramaze/dependencies.rb
- lib/ramaze/gestalt.rb
- lib/ramaze/log.rb
- lib/ramaze/request.rb
- lib/ramaze/files.rb
- lib/ramaze/helper/disqus.rb
- lib/ramaze/helper/csrf.rb
- lib/ramaze/helper/flash.rb
- lib/ramaze/helper/ultraviolet.rb
- lib/ramaze/helper/xhtml.rb
- lib/ramaze/helper/tagz.rb
- lib/ramaze/helper/maruku.rb
- lib/ramaze/helper/localize.rb
- lib/ramaze/helper/link.rb
- lib/ramaze/helper/formatting.rb
- lib/ramaze/helper/simple_captcha.rb
- lib/ramaze/helper/auth.rb
- lib/ramaze/helper/paginate.rb
- lib/ramaze/helper/gravatar.rb
- lib/ramaze/helper/markaby.rb
- lib/ramaze/helper/upload.rb
- lib/ramaze/helper/erector.rb
- lib/ramaze/helper/send_file.rb
- lib/ramaze/helper/blue_form.rb
- lib/ramaze/helper/layout.rb
- lib/ramaze/helper/gestalt.rb
- lib/ramaze/helper/stack.rb
- lib/ramaze/helper/user.rb
- lib/ramaze/helper/bench.rb
- lib/ramaze/helper/thread.rb
- lib/ramaze/helper/cache.rb
- lib/ramaze/helper/email.rb
- lib/ramaze/helper/request_accessor.rb
- lib/ramaze/helper/remarkably.rb
- lib/ramaze/helper/identity.rb
- lib/ramaze/view/tenjin.rb
- lib/ramaze/view/sass.rb
- lib/ramaze/view/liquid.rb
- lib/ramaze/view/haml.rb
- lib/ramaze/view/tagz.rb
- lib/ramaze/view/nagoro.rb
- lib/ramaze/view/gestalt.rb
- lib/ramaze/view/erector.rb
- lib/ramaze/view/mustache.rb
- lib/ramaze/view/ezamar.rb
- lib/ramaze/view/lokar.rb
- lib/ramaze/view/slippers.rb
- lib/ramaze/view/remarkably.rb
- lib/ramaze/view/erubis.rb
- lib/ramaze/reloader/watch_stat.rb
- lib/ramaze/reloader/watch_inotify.rb
- lib/ramaze/cache.rb
- lib/ramaze/middleware_compiler.rb
- lib/ramaze/snippets/numeric/filesize_format.rb
- lib/ramaze/snippets/numeric/time.rb
- lib/ramaze/snippets/binding/locals.rb
- lib/ramaze/snippets/ramaze/acquire.rb
- lib/ramaze/snippets/ramaze/lru_hash.rb
- lib/ramaze/snippets/ramaze/fiber.rb
- lib/ramaze/snippets/ramaze/struct.rb
- lib/ramaze/snippets/ramaze/dictionary.rb
- lib/ramaze/snippets/ramaze/deprecated.rb
- lib/ramaze/snippets/array/put_within.rb
- lib/ramaze/snippets/proc/locals.rb
- lib/ramaze/snippets/object/instance_variable_defined.rb
- lib/ramaze/snippets/object/__dir__.rb
- lib/ramaze/snippets/object/pretty.rb
- lib/ramaze/snippets/object/scope.rb
- lib/ramaze/snippets/string/snake_case.rb
- lib/ramaze/snippets/string/ord.rb
- lib/ramaze/snippets/string/camel_case.rb
- lib/ramaze/snippets/string/unindent.rb
- lib/ramaze/snippets/string/end_with.rb
- lib/ramaze/snippets/string/color.rb
- lib/ramaze/snippets/string/esc.rb
- lib/ramaze/snippets/string/start_with.rb
- lib/ramaze/snippets/kernel/pretty_inspect.rb
- lib/ramaze/controller/default.rb
- lib/ramaze/plugin.rb
- lib/ramaze/current.rb
- lib/ramaze/version.rb

### Namespace

- MODULE Ramaze::Bin
- MODULE Ramaze::CoreExtensions
- MODULE Ramaze::Helper
- MODULE Ramaze::Logger
- MODULE Ramaze::Logging
- MODULE Ramaze::Plugin
- MODULE Ramaze::View
- CLASS Ramaze::App
- CLASS Ramaze::AppGraph
- CLASS Ramaze::Cache
- CLASS Ramaze::Controller
- CLASS Ramaze::Current
- CLASS Ramaze::DefaultController
- CLASS Ramaze::Dictionary
- CLASS Ramaze::Fiber
- CLASS Ramaze::Files
- CLASS Ramaze::GemSetup
- CLASS Ramaze::Gestalt
- CLASS Ramaze::LRUHash
- CLASS Ramaze::MiddlewareCompiler
- CLASS Ramaze::Reloader
- CLASS Ramaze::Request
- CLASS Ramaze::Response
- CLASS Ramaze::SpecLogger
- CLASS Ramaze::Struct

### Methods

- ::acquire
- ::const_missing
- ::deprecated
- ::plugin
- ::setup

### Class/Module Index

Quicksearch

- Ramaze
- Ramaze::App
- Ramaze::AppGraph
- Ramaze::Bin
- Ramaze::Bin::Console
- Ramaze::Bin::Create
- Ramaze::Bin::Helper
- Ramaze::Bin::Restart
- Ramaze::Bin::Runner
- Ramaze::Bin::Start
- Ramaze::Bin::Status
- Ramaze::Bin::Stop
- Ramaze::Cache
- Ramaze::Cache::LRU
- Ramaze::Cache::LocalMemCache
- Ramaze::Cache::MemCache
- Ramaze::Cache::Redis
- Ramaze::Cache::Sequel
- Ramaze::Controller
- Ramaze::CoreExtensions
- Ramaze::CoreExtensions::Array
- Ramaze::CoreExtensions::Binding
- Ramaze::CoreExtensions::Kernel
- Ramaze::CoreExtensions::Numeric
- Ramaze::CoreExtensions::Object
- Ramaze::CoreExtensions::Proc
- Ramaze::CoreExtensions::String
- Ramaze::Current
- Ramaze::DefaultController
- Ramaze::Dictionary
- Ramaze::Fiber
- Ramaze::Files
- Ramaze::GemSetup
- Ramaze::Gestalt
- Ramaze::Helper
- Ramaze::Helper::Auth
- Ramaze::Helper::Bench
- Ramaze::Helper::BlueForm
- Ramaze::Helper::BlueForm::Form
- Ramaze::Helper::CSRF
- Ramaze::Helper::Cache
- Ramaze::Helper::Cache::SingletonMethods
- Ramaze::Helper::Disqus
- Ramaze::Helper::Email
- Ramaze::Helper::Erector
- Ramaze::Helper::Flash
- Ramaze::Helper::Formatting
- Ramaze::Helper::Gestalt
- Ramaze::Helper::Gravatar
- Ramaze::Helper::Identity
- Ramaze::Helper::Layout
- Ramaze::Helper::Layout::SingletonMethods
- Ramaze::Helper::Link
- Ramaze::Helper::Localize
- Ramaze::Helper::Localize::Dictionary
- Ramaze::Helper::Localize::Parser
- Ramaze::Helper::Markaby
- Ramaze::Helper::Maruku
- Ramaze::Helper::Paginate
- Ramaze::Helper::Paginate::Paginator
- Ramaze::Helper::Paginate::Paginator::ArrayPager
- Ramaze::Helper::Paginate::Paginator::DataMapperPager
- Ramaze::Helper::Remarkably
- Ramaze::Helper::RequestAccessor
- Ramaze::Helper::SendFile
- Ramaze::Helper::SimpleCaptcha
- Ramaze::Helper::Stack
- Ramaze::Helper::Thread
- Ramaze::Helper::Ultraviolet
- Ramaze::Helper::Upload
- Ramaze::Helper::Upload::ClassMethods
- Ramaze::Helper::Upload::UploadedFile
- Ramaze::Helper::UserHelper
- Ramaze::Helper::UserHelper::Wrapper
- Ramaze::Helper::XHTML
- Ramaze::LRUHash
- Ramaze::Logger
- Ramaze::Logger::Analogger
- Ramaze::Logger::Growl
- Ramaze::Logger::Informer
- Ramaze::Logger::Knotify
- Ramaze::Logger::LogHub
- Ramaze::Logger::Logger
- Ramaze::Logger::RotatingInformer
- Ramaze::Logger::Syslog
- Ramaze::Logger::Xosd
- Ramaze::Logging
- Ramaze::MiddlewareCompiler
- Ramaze::Plugin
- Ramaze::Reloader
- Ramaze::Reloader::Hooks
- Ramaze::Reloader::WatchInotify
- Ramaze::Reloader::WatchStat
- Ramaze::Request
- Ramaze::Response
- Ramaze::SpecLogger
- Ramaze::Struct
- Ramaze::View
- Ramaze::View::Erector
- Ramaze::View::Erubis
- Ramaze::View::Ezamar
- Ramaze::View::Gestalt
- Ramaze::View::Haml
- Ramaze::View::Liquid
- Ramaze::View::Liquid::Tag
- Ramaze::View::Lokar
- Ramaze::View::Mustache
- Ramaze::View::Mustache::RamazeContext
- Ramaze::View::Nagoro
- Ramaze::View::Remarkably
- Ramaze::View::Sass
- Ramaze::View::Slippers
- Ramaze::View::Tagz
- Ramaze::View::Tagz::Methods
- Ramaze::View::Tenjin
- Nagoro
- Nagoro::Pipe
- Nagoro::Pipe::RenderPartial
- Bacon
- Bacon::PrettyOutput
- Erector
- Erector::Widget
- Rack
- Rack::RouteExceptions
- Tenjin
- Tenjin::Template
- BlankSlate
- Controller
- Fiber
- FiberError
- MainController
- Object
- OrderedSet
- Thread

No matching classes.

# Ramaze

Namespace for Ramaze

THINK:

    * for now, we don't extend this with Innate to keep things clean. But we
      should eventually do it for a simple API, or people always have to find
      out whether something is in Innate or Ramaze.
      No matter which way we go, we should keep references point to the
      original location to avoid too much confusion for core developers.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

# Dictionary

The Dictionary class is a Hash that preserves order. So it has some array-like extensions also. By defualt a Dictionary object preserves insertion order, but any order can be specified including alphabetical key order.

## Usage

Just require this file and use Dictionary instead of Hash.

    # You can do simply
    hsh = Dictionary.new
    hsh['z'] = 1
    hsh['a'] = 2
    hsh['c'] = 3
    p hsh.keys     #=> ['z','a','c']

    # or using Dictionary[] method
    hsh = Dictionary['z', 1, 'a', 2, 'c', 3]
    p hsh.keys     #=> ['z','a','c']

    # but this don't preserve order
    hsh = Dictionary['z'=>1, 'a'=>2, 'c'=>3]
    p hsh.keys     #=> ['a','c','z']

    # Dictionary has useful extensions: push, pop and unshift
    p hsh.push('to_end', 15)       #=> true, key added
    p hsh.push('to_end', 30)       #=> false, already - nothing happen
    p hsh.unshift('to_begin', 50)  #=> true, key added
    p hsh.unshift('to_begin', 60)  #=> false, already - nothing happen
    p hsh.keys                     #=> ["to_begin", "a", "c", "z", "to_end"]
    p hsh.pop                      #=> ["to_end", 15], if nothing remains, return nil
    p hsh.keys                     #=> ["to_begin", "a", "c", "z"]
    p hsh.shift                    #=> ["to_begin", 30], if nothing remains, return nil

## Usage Notes

- You can use order_by to set internal sort order.

- #<< takes a two element [k,v] array and inserts.

- Use ::auto which creates Dictionay sub-entries as needed.

- And ::alpha which creates a new Dictionary sorted by key.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

    Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com

All files in this distribution are subject to the terms of the Ruby license.

### Constants

AppMap

  An application is a collection of controllers and options that have a common name. Every application has a location it dispatches from, this behaves similar to Rack::URLMap.

Cache
DEPENDENCIES

  Array containing the names and versions of all the gems required by Ramaze along with the name of how the gem should be required.

DEPRECATED_CONSTANTS
DEVELOPMENT_DEPENDENCIES

  Array containing all the development dependencies.

Helper
Log
OpenIDStore

  Constant for storing meta-information persistent

ROOT
UNSUPPORTED_GEMS

  Array containing gems that aren't supported for certain reasons. The gems that are in this array by default will be removed if the current setup does support them.

VERSION
View

### Attributes

options[RW]

### Public Class Methods

acquire(*globs) click to toggle source

Require all .rb and .so files on the given globs, utilizes Dir::[].

Examples:

    # Given following directory structure:
    # src/foo.rb
    # src/bar.so
    # src/foo.yaml
    # src/foobar/baz.rb
    # src/foobar/README

    # requires all files in 'src':
    Ramaze.acquire 'src/*'

    # requires all files in 'src' recursive:
    Ramaze.acquire 'src/**/*'

    # require 'src/foo.rb' and 'src/bar.so' and 'src/foobar/baz.rb'
    Ramaze.acquire 'src/*', 'src/foobar/*'

    # File lib/ramaze/snippets/ramaze/acquire.rb, line 25
    def self.acquire(*globs)
      globs.flatten.each do |glob|
        Dir[glob].each do |file|
          require file if file =~ /\.(rb|so)$/
        end
      end
    end

const_missing(name) click to toggle source

    # File lib/ramaze/snippets/ramaze/deprecated.rb, line 15
    def self.const_missing(name)
      if to = DEPRECATED_CONSTANTS[name]
        Log.warn "Ramaze::#{name} is deprecated, use #{to} instead"
        constant(to)
      else
        super
      end
    end

deprecated(from, to = nil) click to toggle source

    # File lib/ramaze/snippets/ramaze/deprecated.rb, line 8
    def self.deprecated(from, to = nil)
      message = "%s is deprecated"
      message << ", use %s instead" unless to.nil?
      message << " - from: %p"
      Log.warn(message % [from, to, caller[1]])
    end

plugin(name, options = {}) click to toggle source

    # File lib/ramaze/plugin.rb, line 5
    def self.plugin(name, options = {})
      Plugin.load(name, options)
    end

setup(options = {:verbose => true}, &block) click to toggle source

Convenient setup and activation of gems from different sources and specific versions. It's almost like Kernel#gem but also installs automatically if a gem is missing.

@example

    Ramaze.setup :verbose => true do
      # gem and specific version
      gem 'makura', '>=2009.01'

      # gem and name for require
      gem 'aws-s3', :lib => 'aws/s3'

      # gem with specific version from rubyforge (default)
      gem 'json', :version => '=1.1.3', :source => rubyforge
    end

@author manveru @since 19-05-2009 @see GemSetup#initialize

    # File lib/ramaze/setup.rb, line 23
    def self.setup(options = {:verbose => true}, &block)
      GemSetup.new(options, &block)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.