File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,20 +45,22 @@ class MyClass
4545 128
4646 end
4747end
48+ ```
4849
49- # >> obj = new MyClass("my class")
50- # => #<MyClass:0x000001018333d8 @name="my class">
51- # >> obj.main()
52- # This is the main method from my class
53- # => nil
54- # >> obj.returns_int()
55- # => 1
56- # >> obj.not_int()
57- # TypeError: Expected not_int to return int but got "not int" instead
58- # >> obj.returns_byte()
59- # => 1
60- # >> obj.not_byte()
61- # TypeError: Expected not_byte to return byte but got 128 instead
50+ ``` irb
51+ >> obj = new MyClass("my class")
52+ => #<MyClass:0x000001018333d8 @name="my class">
53+ >> obj.main()
54+ This is the main method from my class
55+ => nil
56+ >> obj.returns_int()
57+ => 1
58+ >> obj.not_int()
59+ TypeError: Expected not_int to return int but got "not int" instead
60+ >> obj.returns_byte()
61+ => 1
62+ >> obj.not_byte()
63+ TypeError: Expected not_byte to return byte but got 128 instead
6264```
6365
6466Production Ready?
You can’t perform that action at this time.
0 commit comments