Ruby In Steel's Optional Type Assertions
In order to provide Intellisense for Ruby, a language that does not have explicit typing, Ruby In Steel turns to type inference. The built-in inferencing can be aided by adding type assertions to a function, for instance:
#:return: => nil
#:arg: c => String
def Bar(c)
@field = c
puts @field
end …
| I am:\ |
| | |
| | > Gregory Benford |
| | |
| | A master literary stylist who is also a working scientist. |
+-------------------------------------------------------------------------------+------------------------------------------------------------+