Document inline syntax for Ruby 2.1 and newer
Opened this issue · 0 comments
donv commented
The Readme should document an alternative syntax usable in Ruby 2.1 and newer.
class MyClass
typesig def by_four(i)
i * 4
end , [Integer] => Integer
end
If Rubype would allow trailing method name, it could look like this:
class MyClass
typesig {[Integer] => Integer},
def by_four(i)
i * 4
end
end