Niklas' Code Salad

ideas, code and rants

Hello World

| Comments

In this blog, I am going to publish my deepest feelings about code, usually guarded by a cataract of words supporting my holy opinion.

Sandbox / Cheatsheet / Testbed

Code

Why isn’t that in the stdlib?

slashing Pathnames
1
2
3
4
class Pathname
  alias_method, :/, :join
  # vim highlighting is confused by unbalanced underscores_
end

Because I did not supply a patch, that’s why!

Gist

Trying to define an eigenclass method in ruby keeping closure - cannot remember why or if it’s working.

Comments