Sha256: 27737a17c05d1862584a92080109f8c2f97c575871b11e85fb3d82aeb078fb81
Contents?: true
Size: 416 Bytes
Versions: 10
Compression:
Stored size: 416 Bytes
Contents
require 'rib/test' require 'rib/shell' describe Rib::API do paste :rib Rib::API.instance_methods.delete_if{ |e| e[/=$/] }.each do |meth| would "##{meth} be accessible to plugins" do mod = Module.new do define_method meth do "pong_#{meth}" end end shell = Rib::Shell.dup shell.use(mod) shell.new.send(meth).should == "pong_#{meth}" end end end
Version data entries
10 entries across 10 versions & 1 rubygems