www.francisfish.com

Click Bookshop to see my novels. Buddhist, father of 2, Ruby on Rails programmer for money, and fiction writer.








Latest Articles:

Archive

Tag Cloud:

Stats:

  • Entries = 358
  • Notes = 35

General Links

    follow me on Twitter

    Extending/Mixin Ruby classes with Modules

    module Mod  def x     puts "x"  endendclass C1  extend Modendclass C2  include ModendC1.x - will workC2.x - will not, but C2.new.x willIn essence: extend - class level include - instance level None of

    Comments (1) . Wednesday, 8 August 2007