diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2018-05-08 11:01:54 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2018-05-08 11:01:54 -0300 |
commit | 2220dc4babe2264453ddd26c45a9437973435bc3 (patch) | |
tree | 7128a1a1c72384b1da78ced15ecf923785cc9136 | |
parent | 8ada19b8f3ac4cc2654d03025664582166151d14 (diff) | |
download | perl6-matrix-client-2220dc4babe2264453ddd26c45a9437973435bc3.tar.gz |
Add method Str to Room
-rw-r--r-- | lib/Matrix/Client/Room.pm6 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Matrix/Client/Room.pm6 b/lib/Matrix/Client/Room.pm6 index c264a80..1f6aa19 100644 --- a/lib/Matrix/Client/Room.pm6 +++ b/lib/Matrix/Client/Room.pm6 @@ -51,6 +51,9 @@ method leave() { } method gist(--> Str) { - my $name = self.name(); + "Room<name: {self.name()}, id: {self.id}>" +} + +method Str(--> Str) { "Room<name: {self.name()}, id: {self.id}>" } |