-
-
Save jmoody/c23419118f19fa61db1b to your computer and use it in GitHub Desktop.
deprecate a ruby constant
This file contains 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
def self.const_missing(const_name) | |
if const_name == :FRAMEWORK_VERSION | |
_deprecated('0.9.169', 'no replacement', :warn) | |
return nil | |
end | |
raise(NameError, "uninitialized constant Calabash::Cucumber::#{const_name}") | |
end |
Author
jmoody
commented
May 26, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment