Sha256: 972aad43175dfe88c62e440950cfa4b05db275c55d72a65b765edc6afb3d4586

Contents?: true

Size: 383 Bytes

Versions: 8

Compression:

Stored size: 383 Bytes

Contents

module Kernel
  begin
    alias_method ":metaclass", :metaclass
  rescue
    alias_method :":metaclass", :singleton_class
    alias_method :metaclass, :singleton_class
  end

  def fancy_require(file, compile = false)
    if compile
      file = Fancy::CodeLoader.compile_file! file
    end
    find_file = !compile
    Fancy::CodeLoader.load_compiled_file file, find_file
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fancy-0.10.0 boot/fancy_ext/kernel.rb
fancy-0.9.0 boot/fancy_ext/kernel.rb
fancy-0.8.0 boot/fancy_ext/kernel.rb
fancy-0.7.0 boot/fancy_ext/kernel.rb
fancy-0.6.0 boot/fancy_ext/kernel.rb
fancy-0.5.0 boot/fancy_ext/kernel.rb
fancy-0.4.0 boot/fancy_ext/kernel.rb
fancy-0.3.3 boot/fancy_ext/kernel.rb