Sha256: 9d2fc95c27a4330394c621da54c7bb52ad814f6d35182b62600f8f597c93ce47

Contents?: true

Size: 299 Bytes

Versions: 48

Compression:

Stored size: 299 Bytes

Contents

class Object
  def local_methods
    (instance_methods - Object.instance_methods).sort
  end
end

def link(obj_name, from:)
  obj = Ree.container.packages_facade.get_object(from, obj_name)

  define_method obj_name do |*args, **kwargs, &proc|
    obj.klass.new.call(*args, **kwargs, &proc)
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
ree-1.0.47 lib/ree/templates/init/.irbrc
ree-1.0.46 lib/ree/templates/init/.irbrc
ree-1.0.45 lib/ree/templates/init/.irbrc
ree-1.0.44 lib/ree/templates/init/.irbrc
ree-1.0.43 lib/ree/templates/init/.irbrc
ree-1.0.42 lib/ree/templates/init/.irbrc
ree-1.0.41 lib/ree/templates/init/.irbrc
ree-1.0.40 lib/ree/templates/init/.irbrc
ree-1.0.39 lib/ree/templates/init/.irbrc
ree-1.0.38 lib/ree/templates/init/.irbrc
ree-1.0.37 lib/ree/templates/init/.irbrc
ree-1.0.36 lib/ree/templates/init/.irbrc
ree-1.0.35 lib/ree/templates/init/.irbrc
ree-1.0.34 lib/ree/templates/init/.irbrc
ree-1.0.33 lib/ree/templates/init/.irbrc
ree-1.0.32 lib/ree/templates/init/.irbrc
ree-1.0.31 lib/ree/templates/init/.irbrc
ree-1.0.30 lib/ree/templates/init/.irbrc
ree-1.0.29 lib/ree/templates/init/.irbrc
ree-1.0.28 lib/ree/templates/init/.irbrc