advanced/traits.rb

tests/_examples/advanced/traits.rb in the metorex repository.

module Drawable
  def draw
  end
end

class Circle
  include Drawable

  def draw
    puts "Drawing circle"
  end
end

Output:

The program prints nothing.