README.md in rubype-0.2.3 vs README.md in rubype-0.2.4
- old
+ new
@@ -123,9 +123,22 @@
MyClass.new.sum(1, 2)
# It's totally OK!!
MyClass.new.sum('1', 2)
```
+### Check type info everywhere!
+```ruby
+class MyClass
+ def sum(x, y)
+ x.to_i + y
+ end
+ typesig :sum, [:to_i, Numeric] => Numeric
+end
+
+MyClass.new.method(:foo).type_info
+# => [:to_i, Numeric] => Numeric
+
+```
## Installation
gem install rubype or add gem 'rubype' to your Gemfile.