Sha256: 953c0dd93af9944f9913fa2fd67c4099ebffac9ce058013c9ac260f9f3638044

Contents?: true

Size: 837 Bytes

Versions: 1

Compression:

Stored size: 837 Bytes

Contents

base = File.dirname(__FILE__)
require File.expand_path("../boot/fancy_ext", base)
require File.expand_path("../boot/load", base)

Fancy::CodeLoader.load_compiled_file File.expand_path("../lib/boot", base)

# Remove the bootstrapping code loader
bcl = Fancy.send :remove_const, :CodeLoader
bcl.load_compiled_file File.expand_path("../lib/rbx/code_loader", base)

# Initialize the load path
Fancy::CodeLoader.push_loadpath File.expand_path("../lib", base)

# Load compiler+eval support
Fancy::CodeLoader.load_compiled_file File.expand_path("../lib/rbx/eval", base)

class Object
  def fy(message)
    case message
    when Hash
      __send__(message.keys.join(":") << ":", *message.values)
    else
      __send__(":#{message}")
    end
  end

  def fancy_require(fancy_file)
    Fancy::CodeLoader.load_compiled_file fancy_file
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fancy-0.10.0 ruby_lib/fancy.rb