globally scoped methods in ruby