Sha256: 1626bfbb130b81b7ac9497a14c7e7168874e35addea969ccaaa5e33289a58bbf

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

#encoding: utf-8

require 'y_support'
require 'y_support/name_magic'
require 'y_support/typing'
require 'y_support/unicode'
require 'y_support/respond_to'
require 'y_support/null_object'
require 'y_support/inert_recorder'
require 'y_support/local_object'
require 'y_support/try'
require 'y_support/abstract_algebra'
require 'y_support/kde'
require 'y_support/x'
require 'y_support/misc'


# # Test me!
# class BlankSlate
#   class << self
#     # Hide the method named +name+ in the BlankSlate class. Don't
#     # hide +instance_eval+ or any method beginning with "__".
#     def hide( name )
#       if instance_methods.include? name and
#           name !~ /^(__|instance_eval)/
#         @hidden_methods ||= {}
#         @hidden_methods[name] = instance_method name
#         undef_method name
#       end
#     end

#     def find_hidden_method name
#       @hidden_methods ||= {}
#       @hidden_methods[name] || superclass.find_hidden_method( name )
#     end

#     # Redefine a previously hidden method
#     def reveal name
#       unbound_method = find_hidden_method name
#       fail "Don't know how to reveal method '#{name}'" unless unbound_method
#       define_method( name, unbound_method )
#     end
#   end
# end # class BlankSlate

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
y_support-2.1.18 lib/y_support/all.rb
y_support-2.1.17 lib/y_support/all.rb
y_support-2.1.16 lib/y_support/all.rb
y_support-2.1.13 lib/y_support/all.rb
y_support-2.1.12 lib/y_support/all.rb