Sha256: 67114d5c78352a39afc184193b4e00a157ce86ac748ab9f66184466ca129f052
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
class Object define_method("__AFTER__BOOTSTRAP__:") do |block| nil end define_method("ruby:with_block:") do |method, block| self.__send__(method, &block) end define_method("ruby:args:with_block:") do |method, args, block| self.__send__(method, *args, &block) end define_method("ruby:args:") do |method, args| self.__send__(method, *args) end define_method(":to_s") do return self.to_s end define_method("require:") do |path| Fancy::CodeLoader.send "require:", path end def to_a [self] end end class Fancy class BasicObject instance_methods.each do |m| undef_method(m) if m.to_s !~ /(?:^__|^nil?$|^send$|^object_id$)/ end end end class BasicObject def method_missing(meth, *args) ::Kernel.raise ::NoMethodError, "Unable to send '#{meth}' to instance of #{self.class}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.10.0 | boot/fancy_ext/object.rb |