Sha256: fa1be0d58d388cff24843ad4d20cfe0062e6328dc41f6d389d13d7afbb555712

Contents?: true

Size: 229 Bytes

Versions: 1

Compression:

Stored size: 229 Bytes

Contents

require 'util/visitor'

# Sequentially apply visitors
class SequenceVisitor
  include Visitor

  def initialize(*visitors)
    @visitors = visitors
  end

  def visit(obj)
    @visitors.each {|v| obj.accept_visitor(v)}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rockit-0.7.1 lib/util/visitor_combinators.rb