Read more

Ruby lets you redefine backticks

Henning Koch
July 11, 2014Software engineer at makandra GmbH

This actually works:

class Klass

  def initialize
    `hi world`
  end

  def `(message)
    puts "Called with backticks: #{message}"
  end
  
end

Klass.new # Prints "Called with backticks: hi world"
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Hat tip to @jcoglan Show archive.org snapshot .

Posted by Henning Koch to makandra dev (2014-07-11 17:39)