ruby-uebungen/Assignment_038/solution/readme.md

18 lines
190 B
Markdown

# Lösung: Macro
```ruby
module Javanator
def Javanator::javafy
def toString; to_s; end
end
end
class Test
include Javanator
Javanator::javafy
end
t = Test.new
t.toString
```