ruby-uebungen/Assignment_038/solution/readme.md

17 lines
552 B
Markdown
Raw Normal View History

2023-05-25 17:47:19 +02:00
# Lösung: Macro
2023-05-23 09:19:31 +02:00
<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
2023-05-25 17:47:19 +02:00
module Javanator
def Javanator::javafy
def toString; to_s; end
2023-05-23 09:19:31 +02:00
end
end
2023-05-25 17:47:19 +02:00
class Test
include Javanator
Javanator::javafy
end
2023-05-23 09:19:31 +02:00
t = Test.new
2023-05-25 17:47:19 +02:00
t.toString
2023-05-23 09:19:31 +02:00
```