This website requires JavaScript.
Explore
Help
Sign In
smits
/
ruby-uebungen
Watch
1
Star
3
Fork
You've already forked ruby-uebungen
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
fe2c1c6eb6
ruby-uebungen
/
Assignment_029
/
solution
History
Thomas Smits
fe2c1c6eb6
Update of exercises
2023-05-25 17:47:19 +02:00
..
readme.md
Update of exercises
2023-05-25 17:47:19 +02:00
readme.md
Lösung: Quine
```ruby p = "p = \"%s\"; puts p %% [ p.gsub(/[\"\\\\]/, '\"' => '\\\"', '\\\\' => '\\\\\\\\') ]"; puts p % [ p.gsub(/["\\]/, '"' => '\\"', '\\' => '\\\\') ] ```