How can I create a dynamic property in ruby? This functionality exists in python.
class Example(object):
value = "This is property!"
class Test(object):
@property
def check(self):
return Example
test = Test()
print(test.check.value) # This is property!
How can I do the same in ruby?