module ActiveSupport - activesupport-4.2.3 Documentation

# module ActiveSupport

### Public Class Methods

eager_load!() click to toggle source
Calls superclass method

    # File lib/active_support.rb, line 68
    def self.eager_load!
      super

      NumberHelper.eager_load!
    end

execute_hook(base, options, block) click to toggle source

    # File lib/active_support/lazy_load_hooks.rb, line 34
    def self.execute_hook(base, options, block)
      if options[:yield]
        block.call(base)
      else
        base.instance_eval(&block)
      end
    end

gem_version() click to toggle source

Returns the version of the currently loaded Active Support as a `Gem::Version`

    # File lib/active_support/gem_version.rb, line 3
    def self.gem_version
      Gem::Version.new VERSION::STRING
    end

on_load(name, options = {}, &block) click to toggle source

    # File lib/active_support/lazy_load_hooks.rb, line 26
    def self.on_load(name, options = {}, &block)
      @loaded[name].each do |base|
        execute_hook(base, options, block)
      end

      @load_hooks[name] << [block, options]
    end

run_load_hooks(name, base = Object) click to toggle source

    # File lib/active_support/lazy_load_hooks.rb, line 42
    def self.run_load_hooks(name, base = Object)
      @loaded[name] << base
      @load_hooks[name].each do |hook, options|
        execute_hook(base, options, hook)
      end
    end

version() click to toggle source

Returns the version of the currently loaded ActiveSupport as a `Gem::Version`

    # File lib/active_support/version.rb, line 5
    def self.version
      gem_version
    end