Sha256: b67551c7f57dacf5da349b9a78db24db1eea3a72ff1f4bce16b25bbe1f9d665d

Contents?: true

Size: 833 Bytes

Versions: 3

Compression:

Stored size: 833 Bytes

Contents

require 'forwardable'
require 'rack'
require 'coffee-script'
require 'haml'
require 'sass'
require 'uglifier'

require_relative 'support/inflector'
require_relative 'support/loader'
require_relative 'support/query_string'
require_relative 'support/query_struct'

require_relative 'rail/application'
require_relative 'rail/browser'
require_relative 'rail/context'
require_relative 'rail/pipeline'
require_relative 'rail/precompiler'
require_relative 'rail/processor'
require_relative 'rail/request'
require_relative 'rail/server'
require_relative 'rail/version'

module Rail
  NotFoundError = Class.new(StandardError)

  def self.env
    @env ||= Support::QueryString.new(ENV['RAIL_ENV'] || 'development')
  end

  def self.applications
    ObjectSpace.each_object(Class).select do |klass|
      klass < Application
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rail-0.1.1 lib/rail.rb
rail-0.1.0 lib/rail.rb
rail-0.0.8 lib/rail.rb