Sha256: 33b7047623e33bdab68557965845ca1b4cede1579323b07e241c3b3029b1a886

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

# Author::    Nicolas Pouillard  <ertai@lrde.epita.fr>.
# Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved.
# License::   LGPL
# $Id: dispatch.rb 567 2005-04-13 08:00:06Z polrop $


require 'io/ext'
require 'io/filters'

class IO

  class Dispatch

    include IO::ImplIndent

    def initialize(*filters)
      @of = filters
    end

    def method_missing(*args)
      @of.each { |of| of.send(*args) }
    end

    def <<(arg)
      @of.each { |of| of << arg }
      self
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ttk-0.1.576 lib/ttk/Tools/io/dispatch.rb
ttk-0.1.579 lib/ttk/Tools/io/dispatch.rb
ttk-0.1.580 lib/ttk/Tools/io/dispatch.rb