Created
October 25, 2013 15:07
-
-
Save kml/7156168 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
class StringUtilsMock | |
def self.underscore(name); name.underscore; end | |
end | |
JavaUtilities.class_eval do | |
class << self | |
alias_method :get_proxy_or_package_under_package_original, :get_proxy_or_package_under_package | |
def get_proxy_or_package_under_package(obj, sym) | |
sym == :StringUtils ? StringUtilsMock : get_proxy_or_package_under_package_original(obj, sym) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment