I am working in .rbs
files in ruby and I and everything were working inside my app until I decided to declare the Redis
type in the .rbs
file.
I am using the gemfile redis
and then I have this function:
def redis_connect
Redis.new(host: REDIS_HOST, port: REDIS_PORT, password: REDIS_PASSWORD)
end
which in the .rbs
file looks like the next:
def redis_connect: () -> Redis
But I am getting the error cannot find Redis
is it possible to "type" Redis? or do I need to leave it untyped
?
Thanks