ruby-uebungen/Assignment_038/solution/readme.md

17 lines
552 B
Markdown

# Lösung: Macro
<div style="border: 1px solid grey;"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>```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
```