Ruby/Method/call
Материал из Wiki.crossplatform.ru
Версия от 17:10, 26 мая 2010; (Обсуждение)
uses Method objects.
trane = "this is a test".method(:length) miles = "this is a sub".method("sub") trane.call # 13 miles.call(/iles/, ".")