dont do

Ruby,Tipp — Johannes am 1. Februar 2008

Einfach Ruby:

module Kernel
  # Ignores its optional block.
  def dont
  end
end

und benutzen:

class Foo
  dont do
    Version = "0.1.2"
  end
end

auf Ruby-Mine gefunden

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2012 webwalk | powered by WordPress with Baeh quiet Barecity