blob: 7732f8b40158595f3e122b47ab6ac11ce76bd1a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
class StringQuestioneer < String
def method_missing(method_name, *arguments)
if method_name.to_s.ends_with?("?")
self == method_name.to_s[0..-2]
else
super
end
end
end
|