Skip to content

Commit 48dab53

Browse files
committed
Better syntax highlight
1 parent 50cab6c commit 48dab53

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,22 @@ class MyClass
4545
128
4646
end
4747
end
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

6466
Production Ready?

0 commit comments

Comments
 (0)