boot/fancy_ext/object.rb in fancy-0.7.0 vs boot/fancy_ext/object.rb in fancy-0.8.0

- old
+ new

@@ -20,26 +20,9 @@ end define_method("require:") do |path| Fancy::CodeLoader.send "require:", path end - - # HACK: - # When we define private/protected/public methods, we usually use - # Module#private, Module#protected & Module#public methods to set the - # access of that method. - # But in cases where we define methods not within a class - # definition, this fails. To make it work, we define these. Kinda - # stupid, i know, but oh well. Maybe need to fix this in the future. - def public - Rubinius::VariableScope.of_sender.method_visibility = nil - end - def private - Rubinius::VariableScope.of_sender.method_visibility = :private - end - def protected - Rubinius::VariableScope.of_sender.method_visibility = :protected - end end class Fancy class BasicObject instance_methods.each do |m|