Module: Markaby::Rails

### Home Classes Methods

### In Files

- lib/markaby/rails.rb
- lib/markaby/rails/current.rb
- lib/markaby/rails/deprecated.rb
- lib/markaby/rails/rails_builder.rb

### Namespace

- MODULE Markaby::Rails::ActionControllerHelpers
- MODULE Markaby::Rails::Helpers
- CLASS Markaby::Rails::RailsBuilder
- CLASS Markaby::Rails::Template
- CLASS Markaby::Rails::TemplateHandler

### Methods

- ::check_rails_version
- ::deprecated_rails_version?
- ::load

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Markaby
- Markaby::Builder
- Markaby::BuilderTags
- Markaby::CssProxy
- Markaby::Fragment
- Markaby::InvalidXhtmlError
- Markaby::Rails
- Markaby::Rails::ActionControllerHelpers
- Markaby::Rails::Helpers
- Markaby::Rails::RailsBuilder
- Markaby::Rails::RailsBuilder::FormHelperProxy
- Markaby::Rails::RailsBuilder::OutputBuffer
- Markaby::Rails::Template
- Markaby::Rails::TemplateHandler
- Markaby::Stream
- Markaby::Tilt
- Markaby::XHTMLFrameset
- Markaby::XHTMLStrict
- Markaby::XHTMLTransitional
- Markaby::XmlMarkup
- Sinatra
- Sinatra::Base
- Sinatra::Templates
- Kernel
- Object

No matching classes.

# Markaby::Rails

### Constants

DEPRECATED_RAILS_VERSIONS
FULLY_SUPPORTED_RAILS_VERSIONS
SUPPORTED_RAILS_VERSIONS
UNSUPPORTED_RAILS_VERSIONS

### Public Class Methods

check_rails_version() click to toggle source

    # File lib/markaby/rails.rb, line 58
    def check_rails_version
      if UNSUPPORTED_RAILS_VERSIONS.include?(detected_rails_version)
        error_message = "Cannot load markaby under rails version #{detected_rails_version}.  "
        error_message << "See Markaby::Rails::SUPPORTED_RAILS_VERSIONS for exactly that, or redefine this constant."
        raise LoadError, error_message
      end
    end

deprecated_rails_version?() click to toggle source

    # File lib/markaby/rails.rb, line 54
    def deprecated_rails_version?
      DEPRECATED_RAILS_VERSIONS.include?(detected_rails_version)
    end

load() click to toggle source

    # File lib/markaby/rails.rb, line 44
    def load
      check_rails_version

      if deprecated_rails_version?
        require File.dirname(__FILE__) + "/rails/deprecated"
      else
        require File.dirname(__FILE__) + "/rails/current"
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.