Sha256: 5f2e342711cffa6ca15f3789c24988d9e85e64fdc74e3e384b97f3ad670e20be

Contents?: true

Size: 265 Bytes

Versions: 3

Compression:

Stored size: 265 Bytes

Contents

require 'rubygems'
require 'spec'
dir = File.dirname(__FILE__)
require "#{dir}/../rake_helper"

class Object
  def metaclass
    class << self; self; end
  end

  def define_instance_method(sym, &block)
    metaclass.__send__(:define_method, sym, &block)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fjson-0.0.8 spec/spec_helper.rb
fjson-0.0.9 spec/spec_helper.rb
fjson-0.1.0 spec/spec_helper.rb