Class: Padrino::Mounter::ApplicationWrapper

### Home Classes Methods

### In Files

- lib/padrino-core/mounter.rb

### Parent

SimpleDelegator

### Methods

- ::new
- #app_file
- #app_name
- #dependencies
- #prerequisite
- #public_folder
- #root
- #setup_application!

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Padrino
- Padrino::Application
- Padrino::ApplicationLoadError
- Padrino::ApplicationSetup
- Padrino::ApplicationSetup::ClassMethods
- Padrino::AuthenticityToken
- Padrino::Cli
- Padrino::Cli::Adapter
- Padrino::Cli::Base
- Padrino::Cli::Launcher
- Padrino::Filter
- Padrino::Flash
- Padrino::Flash::Helpers
- Padrino::Flash::Storage
- Padrino::Loader
- Padrino::Logger
- Padrino::Logger::Colorize
- Padrino::Logger::Extensions
- Padrino::Logger::Rack
- Padrino::Module
- Padrino::Mounter
- Padrino::Mounter::ApplicationWrapper
- Padrino::Mounter::MounterException
- Padrino::ParamsProtection
- Padrino::ParamsProtection::ClassMethods
- Padrino::ParamsProtection::InstanceMethods
- Padrino::Reloader
- Padrino::Reloader::Rack
- Padrino::Reloader::Storage
- Padrino::Router
- Padrino::Routing
- Padrino::Routing::ClassMethods
- Padrino::Routing::InstanceMethods
- Padrino::Routing::Parent
- Padrino::Routing::UnrecognizedException
- Padrino::Server
- Padrino::ShowExceptions
- Padrino::Tasks
- HttpRouter
- HttpRouter::Node
- HttpRouter::Node::FreeRegex
- HttpRouter::Node::Glob
- HttpRouter::Node::Path
- HttpRouter::Node::SpanningRegex
- HttpRouter::Request
- HttpRouter::Route
- Sinatra
- Sinatra::Base
- Sinatra::Request
- Kernel
- Object
- PadrinoTasks

No matching classes.

# Padrino::Mounter::ApplicationWrapper

### Attributes

public_folder[W]
uri_root[RW]

### Public Class Methods

new(app, options = {}) click to toggle source

    # File lib/padrino-core/mounter.rb, line 21
    def initialize(app, options = {})
      @options = options
      super(app)
    end

### Public Instance Methods

app_file() click to toggle source

    # File lib/padrino-core/mounter.rb, line 34
    def app_file
      return @__app_file if @__app_file
      obj = __getobj__
      @__app_file = obj.respond_to?(:app_file) ? obj.app_file : @options[:app_file]
    end

app_name() click to toggle source

    # File lib/padrino-core/mounter.rb, line 52
    def app_name
      @__app_name ||= @options[:app_name] || __getobj__.to_s.underscore.to_sym
    end

dependencies() click to toggle source

    # File lib/padrino-core/mounter.rb, line 26
    def dependencies
      @__dependencies ||= Dir["#{root}/**/*.rb"]
    end

prerequisite() click to toggle source

    # File lib/padrino-core/mounter.rb, line 30
    def prerequisite
      @__prerequisite ||= []
    end

public_folder() click to toggle source

    # File lib/padrino-core/mounter.rb, line 46
    def public_folder
      return @public_folder if @public_folder
      obj = __getobj__
      @public_folder = obj.respond_to?(:public_folder) ? obj.public_folder : ""
    end

root() click to toggle source

    # File lib/padrino-core/mounter.rb, line 40
    def root
      return @__root if @__root
      obj = __getobj__
      @__root = obj.respond_to?(:root) ? obj.root : File.expand_path("#{app_file}/../")
    end

setup_application!() click to toggle source

    # File lib/padrino-core/mounter.rb, line 56
    def setup_application!
      @configured ||=
        begin
          $LOAD_PATH.concat(prerequisite)
          Padrino.require_dependencies(dependencies, :force => true)
          true
        end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.